Index: trunk/phase3/maintenance/addwiki.php |
— | — | @@ -31,12 +31,16 @@ |
32 | 32 | |
33 | 33 | class AddWiki extends Maintenance { |
34 | 34 | public function __construct() { |
| 35 | + global $wgNoDBParam; |
| 36 | + |
35 | 37 | parent::__construct(); |
36 | 38 | $this->mDescription = "Add a new wiki to the family. Wikimedia specific!"; |
37 | 39 | $this->addArg( 'language', 'Language code of new site, e.g. en' ); |
38 | 40 | $this->addArg( 'site', 'Type of site, e.g. wikipedia' ); |
39 | 41 | $this->addArg( 'dbname', 'Name of database to create, e.g. enwiki' ); |
40 | 42 | $this->addArg( 'domain', 'Domain name of the wiki, e.g. en.wikipedia.org' ); |
| 43 | + |
| 44 | + $wgNoDBParam = true; |
41 | 45 | } |
42 | 46 | |
43 | 47 | public function getDbType() { |
— | — | @@ -44,9 +48,8 @@ |
45 | 49 | } |
46 | 50 | |
47 | 51 | public function execute() { |
48 | | - global $IP, $wgDefaultExternalStore, $wgNoDBParam; |
| 52 | + global $IP, $wgDefaultExternalStore; |
49 | 53 | |
50 | | - $wgNoDBParam = true; |
51 | 54 | $lang = $this->getArg( 0 ); |
52 | 55 | $site = $this->getArg( 1 ); |
53 | 56 | $dbName = $this->getArg( 2 ); |