r83835 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r83834‎ | r83835 | r83836 >
Date:17:26, 13 March 2011
Author:reedy
Status:ok
Tags:
Comment:
Minor followup to r83814, also fix some other existances

Don't hardcode module prefixes (just incase they're subclassed at somepoint... :) )
Modified paths:
  • /trunk/phase3/includes/api/ApiQueryCategoryMembers.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/api/ApiQueryCategoryMembers.php
@@ -299,8 +299,8 @@
300300 global $wgMiserMode;
301301 $p = $this->getModulePrefix();
302302 $desc = array(
303 - 'title' => 'Which category to enumerate (required). Must include Category: prefix. Cannot be used together with cmpageid',
304 - 'pageid' => 'Page ID of the category to enumerate. Cannot be used together with cmtitle',
 303+ 'title' => "Which category to enumerate (required). Must include Category: prefix. Cannot be used together with {$p}pageid",
 304+ 'pageid' => "Page ID of the category to enumerate. Cannot be used together with {$p}title",
305305 'prop' => array(
306306 'What pieces of information to include',
307307 ' ids - Adds the page ID',
@@ -327,7 +327,7 @@
328328 $desc['namespace'],
329329 'NOTE: Due to $wgMiserMode, using this may result in fewer than "limit" results',
330330 'returned before continuing; in extreme cases, zero results may be returned.',
331 - 'Note that you can use cmtype=subcat or cmtype=file instead of cmnamespace=14 or 6.',
 331+ "Note that you can use {$p}type=subcat or {$p}type=file instead of {$p}namespace=14 or 6.",
332332 );
333333 }
334334 return $desc;

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r83814(bug 27965) Paging in list=categorymembers was completely broken. It was pagi...catrope10:39, 13 March 2011

Status & tagging log