Index: trunk/phase3/maintenance/doMaintenance.php |
— | — | @@ -40,16 +40,6 @@ |
41 | 41 | return; |
42 | 42 | } |
43 | 43 | |
44 | | -// Get an object to start us off |
45 | | -$maintenance = new $maintClass(); |
46 | | - |
47 | | -// Basic sanity checks and such |
48 | | -$maintenance->setup(); |
49 | | - |
50 | | -// We used to call this variable $self, but it was moved |
51 | | -// to $maintenance->mSelf. Keep that here for b/c |
52 | | -$self = $maintenance->getName(); |
53 | | - |
54 | 44 | # Setup the profiler |
55 | 45 | global $IP; |
56 | 46 | if ( file_exists( "$IP/StartProfiler.php" ) ) { |
— | — | @@ -62,6 +52,16 @@ |
63 | 53 | require_once( "$IP/includes/AutoLoader.php" ); |
64 | 54 | require_once( "$IP/includes/Defines.php" ); |
65 | 55 | |
| 56 | +// Get an object to start us off |
| 57 | +$maintenance = new $maintClass(); |
| 58 | + |
| 59 | +// Basic sanity checks and such |
| 60 | +$maintenance->setup(); |
| 61 | + |
| 62 | +// We used to call this variable $self, but it was moved |
| 63 | +// to $maintenance->mSelf. Keep that here for b/c |
| 64 | +$self = $maintenance->getName(); |
| 65 | + |
66 | 66 | if ( defined( 'MW_CONFIG_CALLBACK' ) ) { |
67 | 67 | # Use a callback function to configure MediaWiki |
68 | 68 | require_once( "$IP/includes/DefaultSettings.php" ); |