From 6bf0a725105867b5e86f4a13daa070e229c6687a Mon Sep 17 00:00:00 2001 From: Roan Kattouw Date: Tue, 18 Mar 2008 14:59:44 +0000 Subject: [PATCH] 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 --- includes/api/ApiQueryCategoryMembers.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'); -- 2.20.1