*/
class ApiQueryAllmessages extends ApiQueryBase {
- public function __construct( $query, $moduleName) {
- parent :: __construct( $query, $moduleName, 'am');
+ public function __construct( $query, $moduleName ) {
+ parent :: __construct( $query, $moduleName, 'am' );
}
public function execute() {
$args = $params['args'];
}
// Check if the parser is enabled:
- if ( $params[ 'enableparser' ] ){
+ if ( $params['enableparser'] ) {
$msg = wfMsgExt( $message, array( 'parsemag' ), $args );
} else if ( $args ) {
$msgString = wfMsgGetKey( $message, true, false, false );
return array (
'messages' => 'Which messages to output. "*" means all messages',
'prop' => 'Which properties to get',
- 'enableparser' => array('Set to enable parser, will parses the wikitext of message',
- 'Will substitute magic words, handle templates etc'),
+ 'enableparser' => array( 'Set to enable parser, will preprocess the wikitext of message',
+ 'Will substitute magic words, handle templates etc.' ),
'args' => 'Arguments to be substituted into message',
'filter' => 'Return only messages that contain this string',
'lang' => 'Return messages in this language',