doc fix
authorJeroen De Dauw <jeroendedauw@users.mediawiki.org>
Tue, 6 Sep 2011 20:31:51 +0000 (20:31 +0000)
committerJeroen De Dauw <jeroendedauw@users.mediawiki.org>
Tue, 6 Sep 2011 20:31:51 +0000 (20:31 +0000)
includes/api/ApiBase.php
includes/api/ApiResult.php

index 5c21f83..ad15723 100644 (file)
@@ -1282,7 +1282,7 @@ abstract class ApiBase {
 
        /**
         * Returns the token salt if there is one, '' if the module doesn't require a salt, else false if the module doesn't need a token
-        * @return bool
+        * @return bool|string
         */
        public function getTokenSalt() {
                return false;
index a8ca604..b644354 100644 (file)
@@ -259,6 +259,7 @@ class ApiResult extends ApiBase {
         */
        public function addValue( $path, $name, $value, $overwrite = false ) {
                global $wgAPIMaxResultSize;
+
                $data = &$this->mData;
                if ( $this->mCheckingSize ) {
                        $newsize = $this->mSize + self::size( $value );