From cbdacaf89c2d22877e30e958f8cdb7c7266e7f98 Mon Sep 17 00:00:00 2001 From: Brad Jorsch Date: Tue, 28 Oct 2014 13:23:34 -0400 Subject: [PATCH] API: Actually use api-help-param-no-description If $description is array( '' ), that should still trigger display of the message. Change-Id: Ifeb62d3c139e457ad6cfaddadc2a99d39f99948f --- includes/api/ApiHelp.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 -- 2.20.1