Index: trunk/tools/mwmultiversion/multiversion/MWVersion.php |
— | — | @@ -47,8 +47,9 @@ |
48 | 48 | |
49 | 49 | # Get the correct MediaWiki path based on this version... |
50 | 50 | if ( $host === 'test.wikipedia.org' && !$secure && |
51 | | - !preg_match( '!thumb\.php!', $_SERVER['REQUEST_URI'] ) ) |
52 | | - { |
| 51 | + !preg_match( '!thumb\.php!', $_SERVER['REQUEST_URI'] ) && |
| 52 | + is_dir( MULTIVER_COMMON_HOME . "/$version" ) // home mounted |
| 53 | + ) { |
53 | 54 | define( 'TESTWIKI', 1 ); |
54 | 55 | # Test wiki mostly runs off the version of MediaWiki on /home. |
55 | 56 | # As horrible hack for NFS-less image scalers, use regular docroot for thumbs? |