ApiHelp: Fix PHP notice when "wrap" parameter is provided
authorKevin Israel <pleasestand@live.com>
Tue, 28 Oct 2014 06:48:49 +0000 (02:48 -0400)
committerKevin Israel <pleasestand@live.com>
Tue, 28 Oct 2014 07:03:06 +0000 (03:03 -0400)
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

index 9be2d92..88a3df2 100644 (file)
@@ -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 );