Index: trunk/phase3/includes/installer/DatabaseUpdater.php |
— | — | @@ -73,7 +73,6 @@ |
74 | 74 | } |
75 | 75 | $this->maintenance->setDB( $db ); |
76 | 76 | $this->initOldGlobals(); |
77 | | - $this->initIncludedExtensions(); |
78 | 77 | wfRunHooks( 'LoadExtensionSchemaUpdates', array( $this ) ); |
79 | 78 | } |
80 | 79 | |
— | — | @@ -96,28 +95,6 @@ |
97 | 96 | } |
98 | 97 | |
99 | 98 | /** |
100 | | - * Try to include extensions from LocalSettings so their LocalExtensionSchemaChanges hooks can be run |
101 | | - */ |
102 | | - private function initIncludedExtensions() { |
103 | | - global $IP, $wgHooks, $wgAutoloadClasses; |
104 | | - $ls = file_get_contents( "$IP/LocalSettings.php" ); |
105 | | - if ( $ls === false ) return; |
106 | | - $matches = array(); |
107 | | - preg_match_all( '/[[:blank:]]*(?:require|include){1}(?:_once)?[[:blank:]]*\([[:blank:]]*"\$IP\/extensions\/([^\/].*)\/\1\.php"[[:blank:]]*\);[[:blank:]]*/i', |
108 | | - $ls, $matches, PREG_SET_ORDER ); |
109 | | - unset( $ls ); |
110 | | - |
111 | | - if ( !isset( $wgHooks ) ) |
112 | | - $wgHooks = array(); |
113 | | - if ( !isset( $wgAutoloadClasses ) ) |
114 | | - $wgAutoloadClasses = array(); |
115 | | - |
116 | | - foreach ( $matches as $match ) { |
117 | | - include_once ( "$IP/extensions/{$match[1]}/{$match[1]}.php" ); |
118 | | - } |
119 | | - } |
120 | | - |
121 | | - /** |
122 | 99 | * @throws MWException |
123 | 100 | * @param DatabaseBase $db |
124 | 101 | * @param bool $shared |