From: Sam Reed Date: Sun, 13 Mar 2011 17:26:29 +0000 (+0000) Subject: Minor followup to r83814, also fix some other existances X-Git-Tag: 1.31.0-rc.0~31459 X-Git-Url: https://git.cyclocoop.org/%242?a=commitdiff_plain;h=92cad959dc1c20c4c322a0ff2ada59204c277ef9;p=lhc%2Fweb%2Fwiklou.git Minor followup to r83814, also fix some other existances Don't hardcode module prefixes (just incase they're subclassed at somepoint... :) ) --- diff --git a/includes/api/ApiQueryCategoryMembers.php b/includes/api/ApiQueryCategoryMembers.php index 1ecacd717b..598bde51cc 100644 --- a/includes/api/ApiQueryCategoryMembers.php +++ b/includes/api/ApiQueryCategoryMembers.php @@ -299,8 +299,8 @@ class ApiQueryCategoryMembers extends ApiQueryGeneratorBase { global $wgMiserMode; $p = $this->getModulePrefix(); $desc = array( - 'title' => 'Which category to enumerate (required). Must include Category: prefix. Cannot be used together with cmpageid', - 'pageid' => 'Page ID of the category to enumerate. Cannot be used together with cmtitle', + 'title' => "Which category to enumerate (required). Must include Category: prefix. Cannot be used together with {$p}pageid", + 'pageid' => "Page ID of the category to enumerate. Cannot be used together with {$p}title", 'prop' => array( 'What pieces of information to include', ' ids - Adds the page ID', @@ -327,7 +327,7 @@ class ApiQueryCategoryMembers extends ApiQueryGeneratorBase { $desc['namespace'], 'NOTE: Due to $wgMiserMode, using this may result in fewer than "limit" results', 'returned before continuing; in extreme cases, zero results may be returned.', - 'Note that you can use cmtype=subcat or cmtype=file instead of cmnamespace=14 or 6.', + "Note that you can use {$p}type=subcat or {$p}type=file instead of {$p}namespace=14 or 6.", ); } return $desc;