Index: branches/wmf/1.19wmf1/extensions/skins/Schulenburg/Schulenburg.class.php |
— | — | @@ -11,8 +11,14 @@ |
12 | 12 | return "{$this->path}/main.js"; |
13 | 13 | } |
14 | 14 | |
15 | | - function outputPage( OutputPage $out ) { |
| 15 | + function outputPage( OutputPage $out = null ) { |
16 | 16 | global $wgContLang, $wgSchulenburgSkinPath, $wgScriptPath; |
| 17 | + |
| 18 | + if ( !$out ) { |
| 19 | + // MW 1.19 |
| 20 | + $out = $this->getOutput(); |
| 21 | + } |
| 22 | + |
17 | 23 | $lang = $wgContLang->getCode(); |
18 | 24 | $this->path = $wgSchulenburgSkinPath ? $wgSchulenburgSkinPath : "{$wgScriptPath}/extensions/skins/Schulenburg"; |
19 | 25 | $this->out = $out; |
Index: branches/wmf/1.19wmf1/extensions/skins/Tomas/Tomas.class.php |
— | — | @@ -11,8 +11,14 @@ |
12 | 12 | return "{$this->path}/main.js"; |
13 | 13 | } |
14 | 14 | |
15 | | - function outputPage( OutputPage $out ) { |
| 15 | + function outputPage( OutputPage $out = null ) { |
16 | 16 | global $wgContLang, $wgTomasSkinPath, $wgScriptPath; |
| 17 | + |
| 18 | + if ( !$out ) { |
| 19 | + // MW 1.19 |
| 20 | + $out = $this->getOutput(); |
| 21 | + } |
| 22 | + |
17 | 23 | $lang = $wgContLang->getCode(); |
18 | 24 | $this->path = $wgTomasSkinPath ? $wgTomasSkinPath : "{$wgScriptPath}/extensions/skins/Tomas"; |
19 | 25 | $this->out = $out; |
Index: branches/wmf/1.19wmf1/extensions/skins/Donate/Donate.class.php |
— | — | @@ -11,8 +11,14 @@ |
12 | 12 | return "{$this->path}/main.js"; |
13 | 13 | } |
14 | 14 | |
15 | | - function outputPage( OutputPage $out ) { |
| 15 | + function outputPage( OutputPage $out = null ) { |
16 | 16 | global $wgContLang, $wgDonateSkinPath, $wgScriptPath; |
| 17 | + |
| 18 | + if ( !$out ) { |
| 19 | + // MW 1.19 |
| 20 | + $out = $this->getOutput(); |
| 21 | + } |
| 22 | + |
17 | 23 | $lang = $wgContLang->getCode(); |
18 | 24 | $this->path = $wgDonateSkinPath ? $wgDonateSkinPath : "{$wgScriptPath}/extensions/skins/Donate"; |
19 | 25 | $this->out = $out; |