r107316 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r107315‎ | r107316 | r107317 >
Date:08:07, 26 December 2011
Author:maxsem
Status:ok
Tags:
Comment:
Simplified Title::canExist()
Modified paths:
  • /trunk/phase3/includes/Title.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/Title.php
@@ -764,7 +764,7 @@
765765 * @internal note -- uses hardcoded namespace index instead of constants
766766 */
767767 public function canExist() {
768 - return $this->mNamespace >= 0 && $this->mNamespace != NS_MEDIA;
 768+ return $this->mNamespace >= NS_MAIN;
769769 }
770770
771771 /**

Status & tagging log