From: Brad Jorsch Date: Tue, 28 Oct 2014 17:23:34 +0000 (-0400) Subject: API: Actually use api-help-param-no-description X-Git-Tag: 1.31.0-rc.0~13442 X-Git-Url: https://git.cyclocoop.org/admin/?a=commitdiff_plain;h=cbdacaf89c2d22877e30e958f8cdb7c7266e7f98;p=lhc%2Fweb%2Fwiklou.git API: Actually use api-help-param-no-description If $description is array( '' ), that should still trigger display of the message. Change-Id: Ifeb62d3c139e457ad6cfaddadc2a99d39f99948f --- diff --git a/includes/api/ApiHelp.php b/includes/api/ApiHelp.php index 2ac246b328..fdde4bd683 100644 --- a/includes/api/ApiHelp.php +++ b/includes/api/ApiHelp.php @@ -528,11 +528,11 @@ class ApiHelp extends ApiBase { ->parse(); } - if ( !$description && !$info ) { - $description[] = self::wrap( + if ( !array_filter( $description ) ) { + $description = array( self::wrap( $context->msg( 'api-help-param-no-description' ), 'apihelp-empty' - ); + ) ); } // Add "deprecated" flag