From: Max Semenik Date: Mon, 26 Dec 2011 08:07:56 +0000 (+0000) Subject: Simplified Title::canExist() X-Git-Tag: 1.31.0-rc.0~25748 X-Git-Url: https://git.cyclocoop.org/%7B%24admin_url%7Dmembres/supprimer.php?a=commitdiff_plain;h=a35fe1f5f2f8eda52a93eb974516c3b65918c819;p=lhc%2Fweb%2Fwiklou.git Simplified Title::canExist() --- 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; } /**