Let's just kill $wgUpdates since OpenID was converted in r72798.
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Sun, 12 Sep 2010 16:48:03 +0000 (16:48 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Sun, 12 Sep 2010 16:48:03 +0000 (16:48 +0000)
I hope I was the only one that has the idea to use $wgUpdates in an extension :)

includes/installer/DatabaseUpdater.php

index 9b16b24..14954cb 100644 (file)
@@ -54,12 +54,9 @@ abstract class DatabaseUpdater {
         * something much nicer
         */
        private function initOldGlobals() {
-               global $wgUpdates, $wgExtNewTables, $wgExtNewFields, $wgExtPGNewFields,
+               global $wgExtNewTables, $wgExtNewFields, $wgExtPGNewFields,
                        $wgExtPGAlteredFields, $wgExtNewIndexes, $wgExtModifiedFields;
 
-               // Deprecated. Do not use, ever.
-               $wgUpdates = array();
-
                # For extensions only, should be populated via hooks
                # $wgDBtype should be checked to specifiy the proper file
                $wgExtNewTables = array(); // table, dir
@@ -197,14 +194,14 @@ abstract class DatabaseUpdater {
        }
 
        /**
-        * Before 1.17, we used to handle updates via stuff like $wgUpdates,
+        * Before 1.17, we used to handle updates via stuff like
         * $wgExtNewTables/Fields/Indexes. This is nasty :) We refactored a lot
         * of this in 1.17 but we want to remain back-compatible for awhile. So
         * load up these old global-based things into our update list.
         */
        protected function getOldGlobalUpdates() {
-               global $wgUpdates, $wgExtNewFields, $wgExtNewTables,
-                       $wgExtModifiedFields, $wgExtNewIndexes, $wgSharedDB, $wgSharedTables;
+               global $wgExtNewFields, $wgExtNewTables, $wgExtModifiedFields,
+                       $wgExtNewIndexes, $wgSharedDB, $wgSharedTables;
 
                $doUser = $this->shared ?
                        $wgSharedDB && in_array( 'user', $wgSharedTables ) :
@@ -212,12 +209,6 @@ abstract class DatabaseUpdater {
 
                $updates = array();
 
-               if( isset( $wgUpdates[ $this->db->getType() ] ) ) {
-                       foreach( $wgUpdates[ $this->db->getType() ] as $upd ) {
-                               $updates[] = $upd;
-                       }
-               }
-
                foreach ( $wgExtNewTables as $tableRecord ) {
                        $updates[] = array(
                                'addTable', $tableRecord[0], $tableRecord[1], true