r108731 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r108730‎ | r108731 | 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:
  • /trunk/extensions/InputBox/InputBox.classes.php (modified) (history)

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