Index: trunk/extensions/DumpHTML/SkinOffline.php |
— | — | @@ -14,17 +14,12 @@ |
15 | 15 | */ |
16 | 16 | class SkinOffline extends SkinTemplate { |
17 | 17 | /** Using monobook. */ |
18 | | - function initPage( &$out ) { |
19 | | - global $wgStylePath; |
20 | | - SkinTemplate::initPage( $out ); |
21 | | - $this->template = 'SkinOfflineTemplate'; |
22 | | - $this->skinpath = "$wgStylePath/offline"; |
23 | | - } |
| 18 | + var $template = 'SkinOfflineTemplate'; |
24 | 19 | |
25 | 20 | function setupTemplate( $className, $repository = false, $cache_dir = false ) { |
26 | | - global $wgFavicon; |
| 21 | + global $wgFavicon, $wgStylePath; |
27 | 22 | $tpl = parent::setupTemplate( $className, $repository, $cache_dir ); |
28 | | - $tpl->set( 'skinpath', $this->skinpath ); |
| 23 | + $tpl->set( 'skinpath', "$wgStylePath/offline" ); |
29 | 24 | $tpl->set( 'favicon', $wgFavicon ); |
30 | 25 | return $tpl; |
31 | 26 | } |