r62535 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r62534‎ | r62535 | r62536 >
Date:18:47, 15 February 2010
Author:catrope
Status:ok
Tags:
Comment:
Whitespace fixes for r62532
Modified paths:
  • /trunk/phase3/includes/api/ApiQueryAllmessages.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/api/ApiQueryAllmessages.php
@@ -35,8 +35,8 @@
3636 */
3737 class ApiQueryAllmessages extends ApiQueryBase {
3838
39 - public function __construct( $query, $moduleName) {
40 - parent :: __construct( $query, $moduleName, 'am');
 39+ public function __construct( $query, $moduleName ) {
 40+ parent :: __construct( $query, $moduleName, 'am' );
4141 }
4242
4343 public function execute() {
@@ -87,7 +87,7 @@
8888 $args = $params['args'];
8989 }
9090 // Check if the parser is enabled:
91 - if ( $params[ 'enableparser' ] ){
 91+ if ( $params['enableparser'] ) {
9292 $msg = wfMsgExt( $message, array( 'parsemag' ), $args );
9393 } else if ( $args ) {
9494 $msgString = wfMsgGetKey( $message, true, false, false );
@@ -146,8 +146,8 @@
147147 return array (
148148 'messages' => 'Which messages to output. "*" means all messages',
149149 '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.' ),
152152 'args' => 'Arguments to be substituted into message',
153153 'filter' => 'Return only messages that contain this string',
154154 'lang' => 'Return messages in this language',

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r62532* helps address bug 22453, Enables the api to return PLURAL transforms....dale17:56, 15 February 2010

Status & tagging log