From: Kevin Israel Date: Tue, 28 Oct 2014 06:48:49 +0000 (-0400) Subject: ApiHelp: Fix PHP notice when "wrap" parameter is provided X-Git-Tag: 1.31.0-rc.0~13463^2 X-Git-Url: http://git.cyclocoop.org/data/Fool?a=commitdiff_plain;h=e241959c0de68bf76b673558120f77a474c6119e;p=lhc%2Fweb%2Fwiklou.git ApiHelp: Fix PHP notice when "wrap" parameter is provided An incorrect variable name was used, so the "help" property of the "help" object in the output was merely encoded as null. Change-Id: Ia1a8c8ad4515e216998d4975aad3555f87d24380 --- diff --git a/includes/api/ApiHelp.php b/includes/api/ApiHelp.php index 9be2d92b2a..88a3df2fae 100644 --- a/includes/api/ApiHelp.php +++ b/includes/api/ApiHelp.php @@ -60,7 +60,7 @@ class ApiHelp extends ApiBase { if ( $params['wrap'] ) { $data = array( 'mime' => 'text/html', - 'help' => $help, + 'help' => $html, ); $result->setSubelements( $data, 'help' ); $result->addValue( null, $this->getModuleName(), $data );