r59443 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r59442‎ | r59443 | r59444 >
Date:05:27, 26 November 2009
Author:yaron
Status:deferred
Tags:
Comment:
Action exits quickly if there are no valid titles
Modified paths:
  • /trunk/extensions/TemplateInfo/ApiQueryTemplateInfo.php (modified) (history)

Diff [purge]

Index: trunk/extensions/TemplateInfo/ApiQueryTemplateInfo.php
@@ -23,6 +23,9 @@
2424 public function execute() {
2525 $params = $this->extractRequestParams();
2626 $titles = $this->getPageSet()->getGoodTitles();
 27+ if (count($titles) == 0)
 28+ return;
 29+
2730 $this->addTables( 'page_props' );
2831 $this->addFields( array( 'pp_page', 'pp_value' ) );
2932 $this->addWhere( array(

Status & tagging log