From: Aaron Schulz Date: Fri, 5 Aug 2011 02:36:59 +0000 (+0000) Subject: $wgVersionNumber renamed to $wmfVersionNumber X-Git-Tag: 1.31.0-rc.0~28420 X-Git-Url: http://git.cyclocoop.org/ecrire?a=commitdiff_plain;h=2b8d758f570cb6d53cb74e56c93d73641e6d296d;p=lhc%2Fweb%2Fwiklou.git $wgVersionNumber renamed to $wmfVersionNumber --- diff --git a/maintenance/addwiki.php b/maintenance/addwiki.php index 666e387c23..5ca3a0dc47 100644 --- a/maintenance/addwiki.php +++ b/maintenance/addwiki.php @@ -48,9 +48,9 @@ class AddWiki extends Maintenance { } public function execute() { - global $IP, $wgDefaultExternalStore, $wgVersionNumber; - if ( !$wgVersionNumber ) { // set in CommonSettings.php - $this->error( '$wgVersionNumber is not set, please use MWScript.php wrapper.', true ); + global $IP, $wgDefaultExternalStore, $wmfVersionNumber; + if ( !$wmfVersionNumber ) { // set in CommonSettings.php + $this->error( '$wmfVersionNumber is not set, please use MWScript.php wrapper.', true ); } $lang = $this->getArg( 0 ); @@ -150,7 +150,7 @@ class AddWiki extends Maintenance { # Add to wikiversions.dat $file = fopen( "$common/wikiversions.dat", "a" ); - fwrite( $file, "$dbName php-$wgVersionNumber\n" ); + fwrite( $file, "$dbName php-$wmfVersionNumber\n" ); fclose( $file ); # Rebuild wikiversions.cdb shell_exec( "cd $common/multiversion && ./refreshWikiversionsCDB" );