* Alphabetic ordering in AutoLoader.php
* Using ApiBase::getModuleName in ApiRender and ApiExpandTemplates
This commit is contained in:
Roan Kattouw 2007-11-03 15:50:11 +00:00
parent 7d757dff14
commit b4f578f764
3 changed files with 3 additions and 3 deletions

View file

@ -294,6 +294,7 @@ function __autoload($className) {
# API
'ApiBase' => 'includes/api/ApiBase.php',
'ApiExpandTemplates' => 'includes/api/ApiExpandTemplates.php',
'ApiFormatFeedWrapper' => 'includes/api/ApiFormatBase.php',
'ApiFeedWatchlist' => 'includes/api/ApiFeedWatchlist.php',
'ApiFormatBase' => 'includes/api/ApiFormatBase.php',
@ -308,7 +309,6 @@ function __autoload($className) {
'ApiLogin' => 'includes/api/ApiLogin.php',
'ApiMain' => 'includes/api/ApiMain.php',
'ApiOpenSearch' => 'includes/api/ApiOpenSearch.php',
'ApiExpandTemplates' => 'includes/api/ApiExpandTemplates.php',
'ApiPageSet' => 'includes/api/ApiPageSet.php',
'ApiQuery' => 'includes/api/ApiQuery.php',
'ApiQueryAllpages' => 'includes/api/ApiQueryAllpages.php',

View file

@ -57,7 +57,7 @@ class ApiExpandTemplates extends ApiBase {
$result = $this->getResult();
$retval_array = array();
$result->setContent( $retval_array, $retval );
$result->addValue( null, 'expandtemplates', $retval_array );
$result->addValue( null, $this->getModuleName(), $retval_array );
}
protected function getAllowedParams() {

View file

@ -58,7 +58,7 @@ class ApiRender extends ApiBase {
$result = $this->getResult();
$retval_array = array();
$result->setContent( $retval_array, $retval );
$result->addValue( null, 'render', $retval_array );
$result->addValue( null, $this->getModuleName(), $retval_array );
}
protected function getAllowedParams() {