Index: trunk/tools/mwmultiversion/multiversion/MWVersion.php |
— | — | @@ -78,9 +78,9 @@ |
79 | 79 | function getMediaWikiCli( $file ) { |
80 | 80 | global $IP; |
81 | 81 | |
82 | | - static $multiVersion = null; |
| 82 | + require_once( dirname( __FILE__ ) . '/MWMultiVersion.php' ); |
| 83 | + $multiVersion = MWMultiVersion::getInstance(); |
83 | 84 | if( !$multiVersion ) { |
84 | | - require_once( dirname( __FILE__ ) . '/MWMultiVersion.php' ); |
85 | 85 | $multiVersion = MWMultiVersion::initializeForMaintenance(); |
86 | 86 | } |
87 | 87 | if ( $multiVersion->getDatabase() === 'testwiki' ) { |