r28990 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r28989‎ | r28990 | r28991 >
Date:14:24, 29 December 2007
Author:nikerabbit
Status:old
Tags:
Comment:
* Bugfix
Modified paths:
  • /trunk/extensions/Translate/TranslateUtils.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Translate/TranslateUtils.php
@@ -159,9 +159,9 @@
160160 );
161161
162162 foreach ( $rows as $row ) {
163 - if ( $row->page_namespace === NS_MEDIAWIKI ) {
 163+ if ( $row->page_namespace === (string)NS_MEDIAWIKI ) {
164164 self::$pageExists[$row->page_title] = true;
165 - } else {
 165+ } elseif ( $row->page_namespace === (string)NS_MEDIAWIKI_TALK ) {
166166 self::$talkExists[$row->page_title] = true;
167167 }
168168 }

Status & tagging log