r93255 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r93254‎ | r93255 | r93256 >
Date:03:51, 27 July 2011
Author:aaron
Status:ok
Tags:
Comment:
Use aawiki for nextJobDB.php, just like addwiki.php (if --wiki not given)
Modified paths:
  • /trunk/tools/mwmultiversion/multiversion/MWMultiVersion.php (modified) (history)

Diff [purge]

Index: trunk/tools/mwmultiversion/multiversion/MWMultiVersion.php
@@ -157,9 +157,9 @@
158158 $dbname = substr( $argv[1], 7 ); // "script.php --wiki=dbname"
159159 } elseif ( isset( $argv[1] )&& substr( $argv[1], 0, 2 ) !== '--' ) {
160160 $dbname = $argv[1]; // "script.php dbname"
161 - } elseif ( $argv[0] === 'addwiki.php' ) {
162 - # Most scripts assume that the wiki already exists. addwiki.php is
163 - # obviously an exception. Go ahead and assumme aawiki as normal.
 161+ } elseif ( $argv[0] === 'addwiki.php' || $argv[0] === 'nextJobDB.php' ) {
 162+ # For addwiki.php, the DB doesn't yet exist, and for nextJobDB.php
 163+ # we don't care what DB we use. Assumme aawiki as Maintenance.php does.
164164 $dbname = 'aawiki';
165165 $argv = array_merge( array( $argv[0], "--wiki=$dbname" ), array_slice( $argv, 1 ) );
166166 }

Status & tagging log