From e241959c0de68bf76b673558120f77a474c6119e Mon Sep 17 00:00:00 2001 From: Kevin Israel Date: Tue, 28 Oct 2014 02:48:49 -0400 Subject: [PATCH] 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 --- includes/api/ApiHelp.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ); -- 2.20.1