MediaWiki r108731 - Code Review

Jump to: navigation, search
Repository:MediaWiki
Revision:r108730‎ | r108731 (on ViewVC)‎ | r108732 >
Date:17:23, 12 January 2012
Author:demon
Status:ok
Tags:
Comment:
(bug 31158) Multiple namespaces marked as default (**) should all be used instead of just one. Patch by Bagariavivek
Modified paths:

Diff [purge]

Index: trunk/extensions/InputBox/InputBox.classes.php
@@ -127,11 +127,11 @@
128128 $namespaces = $wgContLang->getNamespaces();
129129 $nsAliases = array_merge( $wgContLang->getNamespaceAliases(), $wgNamespaceAliases );
130130 $showNamespaces = array();
 131+ $checkedNS = array();
131132 # Check for valid namespaces
132133 foreach ( $namespacesArray as $userNS ) {
133134 $userNS = trim( $userNS ); # no whitespace
134135
135 - $checkedNS = array();
136136 # Namespace needs to be checked if flagged with "**"
137137 if ( strpos( $userNS, '**' ) ) {
138138 $userNS = str_replace( '**', '', $userNS );

Status & tagging log

  • 20:03, 12 January 2012 Preilly (Talk | contribs) changed the status of r108731 [removed: new added: ok]
Personal tools
Namespaces

Variants
Views
Actions
Navigation
Support
Download
Development
Communication
Toolbox