Index: trunk/phase3/maintenance/doMaintenance.php |
— | — | @@ -40,6 +40,16 @@ |
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 | + |
44 | 54 | # Setup the profiler |
45 | 55 | global $IP; |
46 | 56 | if ( file_exists( "$IP/StartProfiler.php" ) ) { |
— | — | @@ -52,16 +62,6 @@ |
53 | 63 | require_once( "$IP/includes/AutoLoader.php" ); |
54 | 64 | require_once( "$IP/includes/Defines.php" ); |
55 | 65 | |
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" ); |