Partial revert of r32097: please don't introduce this hybrid behavior thing, it'll...
authorRoan Kattouw <catrope@users.mediawiki.org>
Tue, 18 Mar 2008 14:59:44 +0000 (14:59 +0000)
committerRoan Kattouw <catrope@users.mediawiki.org>
Tue, 18 Mar 2008 14:59:44 +0000 (14:59 +0000)
includes/api/ApiQueryCategoryMembers.php

index cb2a1d6..aba1aa7 100644 (file)
@@ -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');