Index: trunk/phase3/includes/installer/DatabaseUpdater.php |
— | — | @@ -54,12 +54,9 @@ |
55 | 55 | * something much nicer |
56 | 56 | */ |
57 | 57 | private function initOldGlobals() { |
58 | | - global $wgUpdates, $wgExtNewTables, $wgExtNewFields, $wgExtPGNewFields, |
| 58 | + global $wgExtNewTables, $wgExtNewFields, $wgExtPGNewFields, |
59 | 59 | $wgExtPGAlteredFields, $wgExtNewIndexes, $wgExtModifiedFields; |
60 | 60 | |
61 | | - // Deprecated. Do not use, ever. |
62 | | - $wgUpdates = array(); |
63 | | - |
64 | 61 | # For extensions only, should be populated via hooks |
65 | 62 | # $wgDBtype should be checked to specifiy the proper file |
66 | 63 | $wgExtNewTables = array(); // table, dir |
— | — | @@ -197,14 +194,14 @@ |
198 | 195 | } |
199 | 196 | |
200 | 197 | /** |
201 | | - * Before 1.17, we used to handle updates via stuff like $wgUpdates, |
| 198 | + * Before 1.17, we used to handle updates via stuff like |
202 | 199 | * $wgExtNewTables/Fields/Indexes. This is nasty :) We refactored a lot |
203 | 200 | * of this in 1.17 but we want to remain back-compatible for awhile. So |
204 | 201 | * load up these old global-based things into our update list. |
205 | 202 | */ |
206 | 203 | protected function getOldGlobalUpdates() { |
207 | | - global $wgUpdates, $wgExtNewFields, $wgExtNewTables, |
208 | | - $wgExtModifiedFields, $wgExtNewIndexes, $wgSharedDB, $wgSharedTables; |
| 204 | + global $wgExtNewFields, $wgExtNewTables, $wgExtModifiedFields, |
| 205 | + $wgExtNewIndexes, $wgSharedDB, $wgSharedTables; |
209 | 206 | |
210 | 207 | $doUser = $this->shared ? |
211 | 208 | $wgSharedDB && in_array( 'user', $wgSharedTables ) : |
— | — | @@ -212,12 +209,6 @@ |
213 | 210 | |
214 | 211 | $updates = array(); |
215 | 212 | |
216 | | - if( isset( $wgUpdates[ $this->db->getType() ] ) ) { |
217 | | - foreach( $wgUpdates[ $this->db->getType() ] as $upd ) { |
218 | | - $updates[] = $upd; |
219 | | - } |
220 | | - } |
221 | | - |
222 | 213 | foreach ( $wgExtNewTables as $tableRecord ) { |
223 | 214 | $updates[] = array( |
224 | 215 | 'addTable', $tableRecord[0], $tableRecord[1], true |