r29573 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r29572‎ | r29573 | r29574 >
Date:05:06, 11 January 2008
Author:aaron
Status:old
Tags:
Comment:
Explicitly use 0 like the other checks here
Modified paths:
  • /trunk/phase3/includes/Title.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/Title.php
@@ -1257,7 +1257,7 @@
12581258 */
12591259 private function getTitleProtection() {
12601260 // Can't protect pages in special namespaces
1261 - if ( $this->getNamespace() < NS_MAIN ) {
 1261+ if ( $this->getNamespace() < 0 ) {
12621262 return false;
12631263 }
12641264

Status & tagging log