http://www.mediawiki.org/wiki/Special:Code/MediaWiki/72872

Revision: 72872
Author:   ialex
Date:     2010-09-12 16:48:03 +0000 (Sun, 12 Sep 2010)

Log Message:
-----------
Let's just kill $wgUpdates since OpenID was converted in r72798.

I hope I was the only one that has the idea to use $wgUpdates in an extension :)

Modified Paths:
--------------
    trunk/phase3/includes/installer/DatabaseUpdater.php

Modified: trunk/phase3/includes/installer/DatabaseUpdater.php
===================================================================
--- trunk/phase3/includes/installer/DatabaseUpdater.php 2010-09-12 16:28:09 UTC 
(rev 72871)
+++ trunk/phase3/includes/installer/DatabaseUpdater.php 2010-09-12 16:48:03 UTC 
(rev 72872)
@@ -54,12 +54,9 @@
         * 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 @@
        }
 
        /**
-        * 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 @@
 
                $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



_______________________________________________
MediaWiki-CVS mailing list
MediaWiki-CVS@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to