Removed deprecated $wgDeferredUpdateList
authorAaron Schulz <aschulz@wikimedia.org>
Mon, 21 Sep 2015 23:25:47 +0000 (16:25 -0700)
committerAaron Schulz <aschulz@wikimedia.org>
Mon, 21 Sep 2015 23:30:16 +0000 (16:30 -0700)
Change-Id: I7072ad3b34dd9a0726df6d1c044616c3b4bcd79f

RELEASE-NOTES-1.26
includes/Setup.php
includes/deferred/DeferredUpdates.php
tests/phpunit/includes/parser/NewParserTest.php

index 13239de..bf07b20 100644 (file)
@@ -188,6 +188,7 @@ changes to languages because of Phabricator reports.
   are deprecated. Applications using those can work via the OAuth
   extension instead. New tokens types should not be added.
 * DatabaseBase::errorCount() was removed (unused).
+* $wgDeferredUpdateList was removed.
 
 == Compatibility ==
 
index 479ce8c..e79d13c 100644 (file)
@@ -681,12 +681,6 @@ if ( !is_object( $wgAuth ) ) {
  */
 $wgTitle = null;
 
-/**
- * @deprecated since 1.24 Use DeferredUpdates::addUpdate instead
- * @var array
- */
-$wgDeferredUpdateList = array();
-
 Profiler::instance()->scopedProfileOut( $ps_globals );
 $ps_extensions = Profiler::instance()->scopedProfileIn( $fname . '-extensions' );
 
index b7e5b0a..713ce70 100644 (file)
@@ -106,9 +106,7 @@ class DeferredUpdates {
         *   prevent lock contention
         */
        public static function doUpdates( $commit = '' ) {
-               global $wgDeferredUpdateList;
-
-               $updates = array_merge( $wgDeferredUpdateList, self::$updates );
+               $updates = self::$updates;
 
                while ( count( $updates ) ) {
                        self::clearPendingUpdates();
@@ -131,7 +129,7 @@ class DeferredUpdates {
                                }
                        }
 
-                       $updates = array_merge( $wgDeferredUpdateList, self::$updates );
+                       $updates = self::$updates;
                }
        }
 
@@ -140,7 +138,6 @@ class DeferredUpdates {
         * want or need to call this. Unit tests need it though.
         */
        public static function clearPendingUpdates() {
-               global $wgDeferredUpdateList;
-               $wgDeferredUpdateList = self::$updates = array();
+               self::$updates = array();
        }
 }
index 0d2129b..df7da98 100644 (file)
@@ -106,7 +106,6 @@ class NewParserTest extends MediaWikiTestCase {
                $tmpGlobals['wgAdaptiveMessageCache'] = true;
                $tmpGlobals['wgUseDatabaseMessages'] = true;
                $tmpGlobals['wgLocaltimezone'] = 'UTC';
-               $tmpGlobals['wgDeferredUpdateList'] = array();
                $tmpGlobals['wgGroupPermissions'] = array(
                        '*' => array(
                                'createaccount' => true,