From a35fe1f5f2f8eda52a93eb974516c3b65918c819 Mon Sep 17 00:00:00 2001 From: Max Semenik Date: Mon, 26 Dec 2011 08:07:56 +0000 Subject: [PATCH] Simplified Title::canExist() --- includes/Title.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/Title.php b/includes/Title.php index 296328044f..a20ca281e6 100644 --- a/includes/Title.php +++ b/includes/Title.php @@ -764,7 +764,7 @@ class Title { * @internal note -- uses hardcoded namespace index instead of constants */ public function canExist() { - return $this->mNamespace >= 0 && $this->mNamespace != NS_MEDIA; + return $this->mNamespace >= NS_MAIN; } /** -- 2.20.1