r90484 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r90483‎ | r90484 | r90485 >
Date:20:53, 20 June 2011
Author:pdhanda
Status:deferred
Tags:
Comment:
Cleanup for maintenance scripts
Modified paths:
  • /trunk/tools/mwmultiversion/wmf-config/MWMultiVersion.php (modified) (history)

Diff [purge]

Index: trunk/tools/mwmultiversion/wmf-config/MWMultiVersion.php
@@ -142,7 +142,6 @@
143143 }
144144 return self::$mwversion;
145145 }
146 -
147146
148147 /**
149148 * Factory method to get an instance of MWMultiVersion used for calls to /w/thumb.php on upload.wikmedia.org.
@@ -164,8 +163,7 @@
165164 public static function getInstanceForMaintenance( ) {
166165 if (!isset(self::$mwversion)) {
167166 self::$mwversion = new self;
168 - self::$mwversion->site = $site;
169 - self::$mwversion->lang = $lang;
 167+ self::$mwversion->setSiteInfoForMaintenance();
170168 }
171169 return self::$mwversion;
172170 }

Status & tagging log