From 328765afbc54b20feb302cd82c66150e80393f71 Mon Sep 17 00:00:00 2001 From: Jeroen De Dauw Date: Tue, 6 Sep 2011 20:31:51 +0000 Subject: [PATCH] doc fix --- includes/api/ApiBase.php | 2 +- includes/api/ApiResult.php | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/includes/api/ApiBase.php b/includes/api/ApiBase.php index 5c21f83548..ad157238d7 100644 --- a/includes/api/ApiBase.php +++ b/includes/api/ApiBase.php @@ -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; diff --git a/includes/api/ApiResult.php b/includes/api/ApiResult.php index a8ca6046ea..b644354f72 100644 --- a/includes/api/ApiResult.php +++ b/includes/api/ApiResult.php @@ -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 ); -- 2.20.1