From: Roan Kattouw Date: Tue, 18 Mar 2008 14:59:44 +0000 (+0000) Subject: Partial revert of r32097: please don't introduce this hybrid behavior thing, it'll... X-Git-Tag: 1.31.0-rc.0~49023 X-Git-Url: https://git.cyclocoop.org/%7B%24admin_url%7Dmembres/modifier.php?a=commitdiff_plain;h=6bf0a725105867b5e86f4a13daa070e229c6687a;p=lhc%2Fweb%2Fwiklou.git Partial revert of r32097: please don't introduce this hybrid behavior thing, it'll only confuse people (has been discussed before). Spending 9 bytes on "Category:" won't kill anyone and ensures consistency with iutitle --- diff --git a/includes/api/ApiQueryCategoryMembers.php b/includes/api/ApiQueryCategoryMembers.php index cb2a1d68be..aba1aa7851 100644 --- a/includes/api/ApiQueryCategoryMembers.php +++ b/includes/api/ApiQueryCategoryMembers.php @@ -53,7 +53,7 @@ class ApiQueryCategoryMembers extends ApiQueryGeneratorBase { if ( !isset($params['title']) || is_null($params['title']) ) $this->dieUsage("The cmtitle parameter is required", 'notitle'); - $categoryTitle = Title::newFromText($params['title'], NS_CATEGORY); + $categoryTitle = Title::newFromText($params['title']); if ( is_null( $categoryTitle ) || $categoryTitle->getNamespace() != NS_CATEGORY ) $this->dieUsage("The category name you entered is not valid", 'invalidcategory');