r27152 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r27151‎ | r27152 | r27153 >
Date:15:50, 3 November 2007
Author:catrope
Status:old
Tags:
Comment:
API:
* Alphabetic ordering in AutoLoader.php
* Using ApiBase::getModuleName in ApiRender and ApiExpandTemplates
Modified paths:
  • /trunk/phase3/includes/AutoLoader.php (modified) (history)
  • /trunk/phase3/includes/api/ApiExpandTemplates.php (modified) (history)
  • /trunk/phase3/includes/api/ApiRender.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/api/ApiRender.php
@@ -58,7 +58,7 @@
5959 $result = $this->getResult();
6060 $retval_array = array();
6161 $result->setContent( $retval_array, $retval );
62 - $result->addValue( null, 'render', $retval_array );
 62+ $result->addValue( null, $this->getModuleName(), $retval_array );
6363 }
6464
6565 protected function getAllowedParams() {
Index: trunk/phase3/includes/api/ApiExpandTemplates.php
@@ -57,7 +57,7 @@
5858 $result = $this->getResult();
5959 $retval_array = array();
6060 $result->setContent( $retval_array, $retval );
61 - $result->addValue( null, 'expandtemplates', $retval_array );
 61+ $result->addValue( null, $this->getModuleName(), $retval_array );
6262 }
6363
6464 protected function getAllowedParams() {
Index: trunk/phase3/includes/AutoLoader.php
@@ -294,6 +294,7 @@
295295
296296 # API
297297 'ApiBase' => 'includes/api/ApiBase.php',
 298+ 'ApiExpandTemplates' => 'includes/api/ApiExpandTemplates.php',
298299 'ApiFormatFeedWrapper' => 'includes/api/ApiFormatBase.php',
299300 'ApiFeedWatchlist' => 'includes/api/ApiFeedWatchlist.php',
300301 'ApiFormatBase' => 'includes/api/ApiFormatBase.php',
@@ -308,7 +309,6 @@
309310 'ApiLogin' => 'includes/api/ApiLogin.php',
310311 'ApiMain' => 'includes/api/ApiMain.php',
311312 'ApiOpenSearch' => 'includes/api/ApiOpenSearch.php',
312 - 'ApiExpandTemplates' => 'includes/api/ApiExpandTemplates.php',
313313 'ApiPageSet' => 'includes/api/ApiPageSet.php',
314314 'ApiQuery' => 'includes/api/ApiQuery.php',
315315 'ApiQueryAllpages' => 'includes/api/ApiQueryAllpages.php',

Status & tagging log