Revert r25047 -- produces confusing, useless behavior when going to Special:Upload...
authorBrion Vibber <brion@users.mediawiki.org>
Wed, 22 Aug 2007 16:25:07 +0000 (16:25 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Wed, 22 Aug 2007 16:25:07 +0000 (16:25 +0000)
RELEASE-NOTES
includes/SpecialPage.php

index 83773fd..7e8ab52 100644 (file)
@@ -185,8 +185,6 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
 * (bug 9002) Provide a "view/restore deleted edits" link on Special:Upload
   when a destination filename is provided that corresponds with previous
   deleted files
-* (bug 11023) Don't register Special:Upload as a special page when uploads are
-  disabled
 * Make the "invalid special page" message clearer
 
 == Bugfixes since 1.10 ==
index 1e83260..89fd15b 100644 (file)
@@ -84,6 +84,7 @@ class SpecialPage
                'Watchlist'                 => array( 'SpecialPage', 'Watchlist' ),
 
                'Recentchanges'             => array( 'IncludableSpecialPage', 'Recentchanges' ),
+               'Upload'                    => array( 'SpecialPage', 'Upload' ),
                'Imagelist'                 => array( 'SpecialPage', 'Imagelist' ),
                'Newimages'                 => array( 'IncludableSpecialPage', 'Newimages' ),
                'Listusers'                 => array( 'SpecialPage', 'Listusers' ),
@@ -159,7 +160,7 @@ class SpecialPage
         */
        static function initList() {
                global $wgSpecialPages;
-               global $wgDisableCounters, $wgDisableInternalSearch, $wgEmailAuthentication, $wgEnableUploads;
+               global $wgDisableCounters, $wgDisableInternalSearch, $wgEmailAuthentication;
 
                if ( self::$mListInitialised ) {
                        return;
@@ -181,10 +182,6 @@ class SpecialPage
                        self::$mList['Confirmemail'] = 'EmailConfirmation';
                }
 
-               if( $wgEnableUploads ) {
-                       self::$mList['Upload'] = array( 'SpecialPage', 'Upload' );
-               }
-
                # Add extension special pages
                self::$mList = array_merge( self::$mList, $wgSpecialPages );