Index: trunk/tools/mwmultiversion/multiversion/MWVersion.php |
— | — | @@ -34,7 +34,7 @@ |
35 | 35 | # Wiki doesn't exist yet? |
36 | 36 | if ( $multiVersion->isMissing() ) { |
37 | 37 | header( "Cache-control: no-cache" ); // same hack as CommonSettings.php |
38 | | - include( "/usr/local/apache/common-local/wmf-config/missing.php" ); |
| 38 | + include( MULTIVER_404SCRIPT_PATH_APACHE ); |
39 | 39 | exit; |
40 | 40 | } |
41 | 41 | |
— | — | @@ -52,9 +52,9 @@ |
53 | 53 | define( 'TESTWIKI', 1 ); |
54 | 54 | # Test wiki mostly runs off the version of MediaWiki on /home. |
55 | 55 | # As horrible hack for NFS-less image scalers, use regular docroot for thumbs? |
56 | | - $IP = "/home/wikipedia/common/$version"; |
| 56 | + $IP = MULTIVER_COMMON_HOME . "/$version"; |
57 | 57 | } else { |
58 | | - $IP = "/usr/local/apache/common-local/$version"; |
| 58 | + $IP = MULTIVER_COMMON_APACHE . "/$version"; |
59 | 59 | } |
60 | 60 | |
61 | 61 | chdir( $IP ); |
Index: trunk/tools/mwmultiversion/multiversion/defines.php |
— | — | @@ -2,5 +2,11 @@ |
3 | 3 | /** |
4 | 4 | * Define installation specific MWMultiVersion values like paths |
5 | 5 | */ |
| 6 | +define( 'MULTIVER_COMMON_HOME', '/home/wikipedia/common' ); |
| 7 | +define( 'MULTIVER_COMMON_APACHE', '/usr/local/apache/common-local' ); |
| 8 | + |
6 | 9 | define( 'MULTIVER_CDB_DIR_HOME', '/home/wikipedia/common' ); |
7 | 10 | define( 'MULTIVER_CDB_DIR_APACHE', '/usr/local/apache/common-local' ); |
| 11 | + |
| 12 | +define( 'MULTIVER_404SCRIPT_PATH_HOME', '/home/wikipedia/common/wmf-config/missing.php' ); |
| 13 | +define( 'MULTIVER_404SCRIPT_PATH_APACHE', '/usr/local/apache/common-local/wmf-config/missing.php' ); |