r36202 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r36201‎ | r36202 | r36203 >
Date:21:34, 11 June 2008
Author:simetrical
Status:old
Tags:
Comment:
I think every string that evaluates to boolean false will be unaffected by this code block anyway (can't capitalize numbers), but we want a strict check here anyway.
Modified paths:
  • /trunk/phase3/includes/SpecialCategories.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/SpecialCategories.php
@@ -32,7 +32,7 @@
3333 function __construct( $from ) {
3434 parent::__construct();
3535 $from = str_replace( ' ', '_', $from );
36 - if( $from != '' ) {
 36+ if( $from !== '' ) {
3737 global $wgCapitalLinks, $wgContLang;
3838 if( $wgCapitalLinks ) {
3939 $from = $wgContLang->ucfirst( $from );

Status & tagging log