Index: trunk/phase3/includes/installer/Installer.php |
— | — | @@ -1196,7 +1196,7 @@ |
1197 | 1197 | * but we're not opening that can of worms |
1198 | 1198 | * @see https://bugzilla.wikimedia.org/show_bug.cgi?id=26857 |
1199 | 1199 | */ |
1200 | | - global $wgHooks, $wgAutoloadClasses; |
| 1200 | + global $wgAutoloadClasses; |
1201 | 1201 | require( "$IP/includes/DefaultSettings.php" ); |
1202 | 1202 | |
1203 | 1203 | foreach( $exts as $e ) { |
— | — | @@ -1208,8 +1208,7 @@ |
1209 | 1209 | |
1210 | 1210 | // Unset everyone else's hooks. Lord knows what someone might be doing |
1211 | 1211 | // in ParserFirstCallInit (see bug 27171) |
1212 | | - unset( $wgHooks ); |
1213 | | - $wgHooks = array( 'LoadExtensionSchemaUpdates' => $hooksWeWant ); |
| 1212 | + $GLOBALS['wgHooks'] = array( 'LoadExtensionSchemaUpdates' => $hooksWeWant ); |
1214 | 1213 | |
1215 | 1214 | return Status::newGood(); |
1216 | 1215 | } |