Kill $wgSkinExtensionFunctions. Way back in r4934 when it was introduced, it was...
authorChad Horohoe <demon@users.mediawiki.org>
Thu, 5 May 2011 06:29:33 +0000 (06:29 +0000)
committerChad Horohoe <demon@users.mediawiki.org>
Thu, 5 May 2011 06:29:33 +0000 (06:29 +0000)
-1 more awful global \o/

RELEASE-NOTES
includes/DefaultSettings.php
includes/Setup.php
includes/specials/SpecialVersion.php

index 4946115..649619b 100644 (file)
@@ -60,6 +60,7 @@ production.
 * $wgProfiling has been removed.
 * The spyc library is now no longer included in phase3.
 * (bug 28343) Unused preferences contextlines/contextchars have been removed
+* $wgSkinExtensionFunctions has been removed. Use $wgExtensionFunctions instead.
 
 === New features in 1.18 ===
 * (bug 8130) Query pages should limit to content namespaces, not just main
index 5a134f4..4909591 100644 (file)
@@ -4525,12 +4525,6 @@ $wgExportFromNamespaces = false;
  */
 $wgExtensionFunctions = array();
 
-/**
- * Extension functions for initialisation of skins. This is called somewhat earlier
- * than $wgExtensionFunctions.
- */
-$wgSkinExtensionFunctions = array();
-
 /**
  * Extension messages files.
  *
index 8e95324..d750fbc 100644 (file)
@@ -434,13 +434,6 @@ $wgDeferredUpdateList = array();
 wfProfileOut( $fname . '-globals' );
 wfProfileIn( $fname . '-extensions' );
 
-# Skin setup functions
-# Entries can be added to this variable during the inclusion
-# of the extension file. Skins can then perform any necessary initialisation.
-foreach ( $wgSkinExtensionFunctions as $func ) {
-       call_user_func( $func );
-}
-
 # Extension setup functions for extensions other than skins
 # Entries should be added to this variable during the inclusion
 # of the extension file. This allows the extension to perform
index 2a727e6..0c09c26 100644 (file)
@@ -261,9 +261,9 @@ class SpecialVersion extends SpecialPage {
         * @return String: Wikitext
         */
        function getExtensionCredits() {
-               global $wgExtensionCredits, $wgExtensionFunctions, $wgParser, $wgSkinExtensionFunctions;
+               global $wgExtensionCredits, $wgExtensionFunctions, $wgParser;
 
-               if ( !count( $wgExtensionCredits ) && !count( $wgExtensionFunctions ) && !count( $wgSkinExtensionFunctions ) ) {
+               if ( !count( $wgExtensionCredits ) && !count( $wgExtensionFunctions ) ) {
                        return '';
                }
 
@@ -321,11 +321,6 @@ class SpecialVersion extends SpecialPage {
                        $out .= '<tr><td colspan="4">' . $this->listToText( $fhooks ) . "</td></tr>\n";
                }
 
-               if ( count( $wgSkinExtensionFunctions ) ) {
-                       $out .= $this->openExtType( wfMsg( 'version-skin-extension-functions' ), 'skin-extension-functions' );
-                       $out .= '<tr><td colspan="4">' . $this->listToText( $wgSkinExtensionFunctions ) . "</td></tr>\n";
-               }
-
                $out .= Xml::closeElement( 'table' );
 
                return $out;