* 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
function getNamespaceMenu( $namespace = null ) {
return Xml::label( wfMsg( 'namespace' ), 'namespace' )
. ' '
- . Xml::namespaceSelector( $namespace, '', false, array( NS_MEDIAWIKI ) );
+ . Xml::namespaceSelector( $namespace, '' );
}
/**
* @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();
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' );