Json message loader clean up
* Rename JsonMessageLoader to ULSJsonMessageLoader * Correct the return type of mw.uls.loadLocalization Follow up: Ic39dec1c484982fb07edd167e83794c0b5f470ee Change-Id: I13c64a5e89ac75be8a95d951658018a78534f466
This commit is contained in:
committed by
Nikerabbit
parent
8b95807054
commit
328eb017c8
@@ -32,7 +32,7 @@ class ApiULSLocalization extends ApiBase {
|
||||
if ( !Language::isValidCode( $language ) ) {
|
||||
$this->dieUsage( 'Invalid language', 'invalidlanguage' );
|
||||
}
|
||||
$contents = JsonMessageLoader::getMessages( $language );
|
||||
$contents = ULSJsonMessageLoader::getMessages( $language );
|
||||
// Output the file's contents raw
|
||||
$this->getResult()->addValue( null, 'text', json_encode( $contents ) );
|
||||
$this->getResult()->addValue( null, 'mime', 'application/json' );
|
||||
|
||||
Reference in New Issue
Block a user