r89543 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r89542‎ | r89543 | r89544 >
Date:23:44, 5 June 2011
Author:reedy
Status:ok
Tags:
Comment:
Fixup error message

Remove {} (documentation tweaks)

Remove whitespace
Modified paths:
  • /trunk/phase3/includes/GlobalFunctions.php (modified) (history)
  • /trunk/phase3/includes/api/ApiQueryAllimages.php (modified) (history)
  • /trunk/phase3/includes/api/ApiQueryImageInfo.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/api/ApiQueryAllimages.php
@@ -126,7 +126,7 @@
127127 if ( !is_null( $params['mime'] ) ) {
128128 global $wgMiserMode;
129129 if ( $wgMiserMode ) {
130 - $this->dieUsage( 'MIME search disabled in Miser Mode', 'mimeearchdisabled' );
 130+ $this->dieUsage( 'MIME search disabled in Miser Mode', 'mimesearchdisabled' );
131131 }
132132
133133 list( $major, $minor ) = File::splitMime( $params['mime'] );
@@ -259,7 +259,7 @@
260260 return array_merge( parent::getPossibleErrors(), array(
261261 array( 'code' => 'params', 'info' => 'Use "gaifilterredir=nonredirects" option instead of "redirects" when using allimages as a generator' ),
262262 array( 'code' => 'unsupportedrepo', 'info' => 'Local file repository does not support querying all images' ),
263 - array( 'code' => 'mimeearchdisabled', 'info' => 'MIME search disabled in Miser Mode' ),
 263+ array( 'code' => 'mimesearchdisabled', 'info' => 'MIME search disabled in Miser Mode' ),
264264 array( 'code' => 'invalidsha1hash', 'info' => 'The SHA1 hash provided is not valid' ),
265265 array( 'code' => 'invalidsha1base36hash', 'info' => 'The SHA1Base36 hash provided is not valid' ),
266266 ) );
Index: trunk/phase3/includes/api/ApiQueryImageInfo.php
@@ -533,7 +533,7 @@
534534
535535 /**
536536 * Return the API documentation for the parameters.
537 - * @return {Array} parameter documentation.
 537+ * @return Array parameter documentation.
538538 */
539539 public function getParamDescription() {
540540 $p = $this->getModulePrefix();
Index: trunk/phase3/includes/GlobalFunctions.php
@@ -2174,8 +2174,6 @@
21752175 return false;
21762176 }
21772177
2178 -
2179 -
21802178 static $formats = array(
21812179 TS_UNIX => 'U',
21822180 TS_MW => 'YmdHis',

Status & tagging log