r23636 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r23635‎ | r23636 | r23637 >
Date:11:52, 2 July 2007
Author:catrope
Status:old
Tags:
Comment:
API: Fixing a bug that caused inprop=protection to scream when no
existent titles were specified
Modified paths:
  • /trunk/phase3/includes/api/ApiQueryInfo.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/api/ApiQueryInfo.php
@@ -68,7 +68,7 @@
6969 $pageLatest = $pageSet->getCustomField('page_latest');
7070 $pageLength = $pageSet->getCustomField('page_len');
7171
72 - if ($fld_protection) {
 72+ if ($fld_protection && count($titles) > 0) {
7373 $this->addTables('page_restrictions');
7474 $this->addFields(array('pr_page', 'pr_type', 'pr_level', 'pr_expiry'));
7575 $this->addWhereFld('pr_page', array_keys($titles));

Follow-up revisions

RevisionCommit summaryAuthorDate
r23637Merging r23636 into apiedit branchcatrope11:53, 2 July 2007
r23662Merged revisions 23581-23661 via svnmerge from...david03:01, 3 July 2007

Status & tagging log