Whitespace fixes for r62532
authorRoan Kattouw <catrope@users.mediawiki.org>
Mon, 15 Feb 2010 18:47:32 +0000 (18:47 +0000)
committerRoan Kattouw <catrope@users.mediawiki.org>
Mon, 15 Feb 2010 18:47:32 +0000 (18:47 +0000)
includes/api/ApiQueryAllmessages.php

index 5dbf5f9..4c04a7c 100644 (file)
@@ -35,8 +35,8 @@ if ( !defined( 'MEDIAWIKI' ) ) {
  */
 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() {
@@ -87,7 +87,7 @@ class ApiQueryAllmessages extends ApiQueryBase {
                                        $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 );
@@ -146,8 +146,8 @@ class ApiQueryAllmessages extends ApiQueryBase {
                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',