https://www.mediawiki.org/wiki/Special:Code/MediaWiki/112297
Revision: 112297
Author: tstarling
Date: 2012-02-24 03:54:56 +0000 (Fri, 24 Feb 2012)
Log Message:
-----------
MFT r112296: fixes for 1.19 compatibility
Modified Paths:
--------------
branches/wmf/1.19wmf1/extensions/skins/Donate/Donate.class.php
branches/wmf/1.19wmf1/extensions/skins/Schulenburg/Schulenburg.class.php
branches/wmf/1.19wmf1/extensions/skins/Tomas/Tomas.class.php
Modified: branches/wmf/1.19wmf1/extensions/skins/Donate/Donate.class.php
===================================================================
--- branches/wmf/1.19wmf1/extensions/skins/Donate/Donate.class.php
2012-02-24 03:53:53 UTC (rev 112296)
+++ branches/wmf/1.19wmf1/extensions/skins/Donate/Donate.class.php
2012-02-24 03:54:56 UTC (rev 112297)
@@ -11,8 +11,14 @@
return "{$this->path}/main.js";
}
- function outputPage( OutputPage $out ) {
+ function outputPage( OutputPage $out = null ) {
global $wgContLang, $wgDonateSkinPath, $wgScriptPath;
+
+ if ( !$out ) {
+ // MW 1.19
+ $out = $this->getOutput();
+ }
+
$lang = $wgContLang->getCode();
$this->path = $wgDonateSkinPath ? $wgDonateSkinPath :
"{$wgScriptPath}/extensions/skins/Donate";
$this->out = $out;
Modified:
branches/wmf/1.19wmf1/extensions/skins/Schulenburg/Schulenburg.class.php
===================================================================
--- branches/wmf/1.19wmf1/extensions/skins/Schulenburg/Schulenburg.class.php
2012-02-24 03:53:53 UTC (rev 112296)
+++ branches/wmf/1.19wmf1/extensions/skins/Schulenburg/Schulenburg.class.php
2012-02-24 03:54:56 UTC (rev 112297)
@@ -11,8 +11,14 @@
return "{$this->path}/main.js";
}
- function outputPage( OutputPage $out ) {
+ function outputPage( OutputPage $out = null ) {
global $wgContLang, $wgSchulenburgSkinPath, $wgScriptPath;
+
+ if ( !$out ) {
+ // MW 1.19
+ $out = $this->getOutput();
+ }
+
$lang = $wgContLang->getCode();
$this->path = $wgSchulenburgSkinPath ? $wgSchulenburgSkinPath :
"{$wgScriptPath}/extensions/skins/Schulenburg";
$this->out = $out;
Modified: branches/wmf/1.19wmf1/extensions/skins/Tomas/Tomas.class.php
===================================================================
--- branches/wmf/1.19wmf1/extensions/skins/Tomas/Tomas.class.php
2012-02-24 03:53:53 UTC (rev 112296)
+++ branches/wmf/1.19wmf1/extensions/skins/Tomas/Tomas.class.php
2012-02-24 03:54:56 UTC (rev 112297)
@@ -11,8 +11,14 @@
return "{$this->path}/main.js";
}
- function outputPage( OutputPage $out ) {
+ function outputPage( OutputPage $out = null ) {
global $wgContLang, $wgTomasSkinPath, $wgScriptPath;
+
+ if ( !$out ) {
+ // MW 1.19
+ $out = $this->getOutput();
+ }
+
$lang = $wgContLang->getCode();
$this->path = $wgTomasSkinPath ? $wgTomasSkinPath :
"{$wgScriptPath}/extensions/skins/Tomas";
$this->out = $out;
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs