Revert r24574 and r24667 per Brion on bug 10798
authorRob Church <robchurch@users.mediawiki.org>
Wed, 8 Aug 2007 17:46:43 +0000 (17:46 +0000)
committerRob Church <robchurch@users.mediawiki.org>
Wed, 8 Aug 2007 17:46:43 +0000 (17:46 +0000)
RELEASE-NOTES
includes/SpecialProtectedpages.php
includes/Xml.php

index 1efcfc2..3bf9aed 100644 (file)
@@ -162,8 +162,6 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
 * Improved file history presentation
 * (bug 10739) Users can now enter comments when reverting files
 * Improved handling of permissions errors
-* (bug 10798) Exclude MediaWiki namespace from filtering options on
-  Special:Protectedpages (implicit protection, doesn't make sense to have it)
 * (bug 10793) "Mark patrolled" links will now be shown for users with
   patrol permissions on all eligible diff pages
 * (bug 10655) Show standard tool links for blocked users in block log messages
index cd85b1b..416e861 100644 (file)
@@ -129,7 +129,7 @@ class ProtectedPagesForm {
        function getNamespaceMenu( $namespace = null ) {
                return Xml::label( wfMsg( 'namespace' ), 'namespace' )
                        . '&nbsp;'
-                       . Xml::namespaceSelector( $namespace, '', false, array( NS_MEDIAWIKI ) );
+                       . Xml::namespaceSelector( $namespace, '' );
        }
        
        /**
index a35d21b..eaedb79 100644 (file)
@@ -96,10 +96,9 @@ class Xml {
         * @param mixed $selected Namespace which should be pre-selected
         * @param mixed $all Value of an item denoting all namespaces, or null to omit
         * @param bool $hidden Include hidden namespaces? [WTF? --RC]
-        * @param array $exclude Array of indexes to exclude
         * @return string
         */
-       public static function namespaceSelector( $selected = '', $all = null, $hidden = false, $exclude = array() ) {
+       public static function namespaceSelector( $selected = '', $all = null, $hidden = false ) {
                global $wgContLang;
                $namespaces = $wgContLang->getFormattedNamespaces();
                $options = array();
@@ -107,7 +106,7 @@ class Xml {
                if( !is_null( $all ) )
                        $namespaces = array( $all => wfMsg( 'namespacesall' ) ) + $namespaces;
                foreach( $namespaces as $index => $name ) {
-                       if( $index < NS_MAIN || in_array( $index, $exclude ) )
+                       if( $index < NS_MAIN )
                                continue;
                        if( $index === 0 )
                                $name = wfMsg( 'blanknamespace' );