Fixup error message
authorSam Reed <reedy@users.mediawiki.org>
Sun, 5 Jun 2011 23:44:37 +0000 (23:44 +0000)
committerSam Reed <reedy@users.mediawiki.org>
Sun, 5 Jun 2011 23:44:37 +0000 (23:44 +0000)
Remove {} (documentation tweaks)

Remove whitespace

includes/GlobalFunctions.php
includes/api/ApiQueryAllimages.php
includes/api/ApiQueryImageInfo.php

index 6ce6271..11ae646 100644 (file)
@@ -2174,8 +2174,6 @@ function wfTimestamp( $outputtype = TS_UNIX, $ts = 0 ) {
                return false;
        }
 
-
-
        static $formats = array(
                TS_UNIX => 'U',
                TS_MW => 'YmdHis',
index 020b4b9..fbfdeca 100644 (file)
@@ -126,7 +126,7 @@ class ApiQueryAllimages extends ApiQueryGeneratorBase {
                if ( !is_null( $params['mime'] ) ) {
                        global $wgMiserMode;
                        if ( $wgMiserMode  ) {
-                               $this->dieUsage( 'MIME search disabled in Miser Mode', 'mimeearchdisabled' );
+                               $this->dieUsage( 'MIME search disabled in Miser Mode', 'mimesearchdisabled' );
                        }
 
                        list( $major, $minor ) = File::splitMime( $params['mime'] );
@@ -259,7 +259,7 @@ class ApiQueryAllimages extends ApiQueryGeneratorBase {
                return array_merge( parent::getPossibleErrors(), array(
                        array( 'code' => 'params', 'info' => 'Use "gaifilterredir=nonredirects" option instead of "redirects" when using allimages as a generator' ),
                        array( 'code' => 'unsupportedrepo', 'info' => 'Local file repository does not support querying all images' ),
-                       array( 'code' => 'mimeearchdisabled', 'info' => 'MIME search disabled in Miser Mode' ),
+                       array( 'code' => 'mimesearchdisabled', 'info' => 'MIME search disabled in Miser Mode' ),
                        array( 'code' => 'invalidsha1hash', 'info' => 'The SHA1 hash provided is not valid' ),
                        array( 'code' => 'invalidsha1base36hash', 'info' => 'The SHA1Base36 hash provided is not valid' ),
                ) );
index f8152d4..59c5657 100644 (file)
@@ -533,7 +533,7 @@ class ApiQueryImageInfo extends ApiQueryBase {
 
        /**
         * Return the API documentation for the parameters.
-        * @return {Array} parameter documentation.
+        * @return Array parameter documentation.
         */
        public function getParamDescription() {
                $p = $this->getModulePrefix();