r95282 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r95281‎ | r95282 | r95283 >
Date:23:47, 22 August 2011
Author:robin
Status:ok
Tags:
Comment:
Use strpos() instead of strstr(), per Catrope on r92138.
Modified paths:
  • /trunk/extensions/InputBox/InputBox.classes.php (modified) (history)

Diff [purge]

Index: trunk/extensions/InputBox/InputBox.classes.php
@@ -131,7 +131,7 @@
132132
133133 $checkedNS = array();
134134 # Namespace needs to be checked if flagged with "**"
135 - if ( strstr( $userNS, '**' ) ) {
 135+ if ( strpos( $userNS, '**' ) ) {
136136 $userNS = str_replace( '**', '', $userNS );
137137 $checkedNS[$userNS] = true;
138138 }

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r92138InputBox:...robin03:51, 14 July 2011

Status & tagging log