Minor followup to r83814, also fix some other existances
authorSam Reed <reedy@users.mediawiki.org>
Sun, 13 Mar 2011 17:26:29 +0000 (17:26 +0000)
committerSam Reed <reedy@users.mediawiki.org>
Sun, 13 Mar 2011 17:26:29 +0000 (17:26 +0000)
Don't hardcode module prefixes (just incase they're subclassed at somepoint... :) )

includes/api/ApiQueryCategoryMembers.php

index 1ecacd7..598bde5 100644 (file)
@@ -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;