API:
* Alphabetic ordering in AutoLoader.php * Using ApiBase::getModuleName in ApiRender and ApiExpandTemplates
This commit is contained in:
parent
7d757dff14
commit
b4f578f764
3 changed files with 3 additions and 3 deletions
|
|
@ -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',
|
||||
|
|
|
|||
|
|
@ -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() {
|
||||
|
|
|
|||
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Reference in a new issue