Index: trunk/tools/mwmultiversion/multiversion/MWMultiVersion.php |
— | — | @@ -157,9 +157,9 @@ |
158 | 158 | $dbname = substr( $argv[1], 7 ); // "script.php --wiki=dbname" |
159 | 159 | } elseif ( isset( $argv[1] )&& substr( $argv[1], 0, 2 ) !== '--' ) { |
160 | 160 | $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. |
164 | 164 | $dbname = 'aawiki'; |
165 | 165 | $argv = array_merge( array( $argv[0], "--wiki=$dbname" ), array_slice( $argv, 1 ) ); |
166 | 166 | } |