r85264 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r85263‎ | r85264 | r85265 >
Date:17:10, 3 April 2011
Author:ialex
Status:deferred
Tags:
Comment:
Simplify a bit
Modified paths:
  • /trunk/extensions/DumpHTML/SkinOffline.php (modified) (history)

Diff [purge]

Index: trunk/extensions/DumpHTML/SkinOffline.php
@@ -14,17 +14,12 @@
1515 */
1616 class SkinOffline extends SkinTemplate {
1717 /** 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';
2419
2520 function setupTemplate( $className, $repository = false, $cache_dir = false ) {
26 - global $wgFavicon;
 21+ global $wgFavicon, $wgStylePath;
2722 $tpl = parent::setupTemplate( $className, $repository, $cache_dir );
28 - $tpl->set( 'skinpath', $this->skinpath );
 23+ $tpl->set( 'skinpath', "$wgStylePath/offline" );
2924 $tpl->set( 'favicon', $wgFavicon );
3025 return $tpl;
3126 }

Status & tagging log