Index: trunk/phase3/maintenance/doMaintenance.php |
— | — | @@ -57,6 +57,10 @@ |
58 | 58 | require_once( "$IP/includes/ProfilerStub.php" ); |
59 | 59 | } |
60 | 60 | |
| 61 | +// Some other requires |
| 62 | +require_once( "$IP/includes/AutoLoader.php" ); |
| 63 | +require_once( "$IP/includes/Defines.php" ); |
| 64 | + |
61 | 65 | // Load settings, using wikimedia-mode if needed |
62 | 66 | // Fixme: replace this hack with general farm-friendly code |
63 | 67 | if( file_exists( "$IP/wmf-config/wikimedia-mode" ) ) { |
— | — | @@ -65,15 +69,11 @@ |
66 | 70 | global $cluster; |
67 | 71 | $wgWikiFarm = true; |
68 | 72 | $cluster = 'pmtpa'; |
69 | | - require_once( "$IP/includes/AutoLoader.php" ); |
70 | 73 | require_once( "$IP/includes/SiteConfiguration.php" ); |
71 | 74 | require( "$IP/wmf-config/wgConf.php" ); |
72 | 75 | $maintenance->loadWikimediaSettings(); |
73 | | - require( $IP.'/includes/Defines.php' ); |
74 | 76 | require( $IP.'/wmf-config/CommonSettings.php' ); |
75 | 77 | } else { |
76 | | - require_once( "$IP/includes/AutoLoader.php" ); |
77 | | - require_once( "$IP/includes/Defines.php" ); |
78 | 78 | require_once( $maintenance->loadSettings() ); |
79 | 79 | } |
80 | 80 | $maintenance->finalSetup(); |