Index: trunk/phase3/includes/api/ApiQueryAllmessages.php |
— | — | @@ -35,8 +35,8 @@ |
36 | 36 | */ |
37 | 37 | class ApiQueryAllmessages extends ApiQueryBase { |
38 | 38 | |
39 | | - public function __construct( $query, $moduleName) { |
40 | | - parent :: __construct( $query, $moduleName, 'am'); |
| 39 | + public function __construct( $query, $moduleName ) { |
| 40 | + parent :: __construct( $query, $moduleName, 'am' ); |
41 | 41 | } |
42 | 42 | |
43 | 43 | public function execute() { |
— | — | @@ -87,7 +87,7 @@ |
88 | 88 | $args = $params['args']; |
89 | 89 | } |
90 | 90 | // Check if the parser is enabled: |
91 | | - if ( $params[ 'enableparser' ] ){ |
| 91 | + if ( $params['enableparser'] ) { |
92 | 92 | $msg = wfMsgExt( $message, array( 'parsemag' ), $args ); |
93 | 93 | } else if ( $args ) { |
94 | 94 | $msgString = wfMsgGetKey( $message, true, false, false ); |
— | — | @@ -146,8 +146,8 @@ |
147 | 147 | return array ( |
148 | 148 | 'messages' => 'Which messages to output. "*" means all messages', |
149 | 149 | 'prop' => 'Which properties to get', |
150 | | - 'enableparser' => array('Set to enable parser, will parses the wikitext of message', |
151 | | - 'Will substitute magic words, handle templates etc'), |
| 150 | + 'enableparser' => array( 'Set to enable parser, will preprocess the wikitext of message', |
| 151 | + 'Will substitute magic words, handle templates etc.' ), |
152 | 152 | 'args' => 'Arguments to be substituted into message', |
153 | 153 | 'filter' => 'Return only messages that contain this string', |
154 | 154 | 'lang' => 'Return messages in this language', |