Index: trunk/phase3/includes/installer/Installer.php |
— | — | @@ -1215,6 +1215,14 @@ |
1216 | 1216 | require( "$path/$e/$e.php" ); |
1217 | 1217 | } |
1218 | 1218 | |
| 1219 | + $hooksWeWant = isset( $wgHooks['LoadExtensionSchemaUpdates'] ) ? |
| 1220 | + $wgHooks['LoadExtensionSchemaUpdates'] : array(); |
| 1221 | + |
| 1222 | + // Unset everyone else's hooks. Lord knows what someone might be doing |
| 1223 | + // in ParserFirstCallInit (see bug 27171) |
| 1224 | + unset( $wgHooks ); |
| 1225 | + $wgHooks = array( 'LoadExtensionSchemaUpdates' => $hooksWeWant ); |
| 1226 | + |
1219 | 1227 | return Status::newGood(); |
1220 | 1228 | } |
1221 | 1229 | |