From defda67f7181692342b88b9ead0635e235f142b8 Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Tue, 21 Jun 2011 20:05:00 +0000 Subject: [PATCH] Simplify checks by using wfMessage() instead of wfEmptyMsg() --- includes/api/ApiQueryTags.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/includes/api/ApiQueryTags.php b/includes/api/ApiQueryTags.php index 12f3eed297..4ab0c3d11b 100644 --- a/includes/api/ApiQueryTags.php +++ b/includes/api/ApiQueryTags.php @@ -113,9 +113,8 @@ class ApiQueryTags extends ApiQueryBase { } if ( $this->fld_description ) { - $msg = wfMsg( "tag-$tagName-description" ); - $msg = wfEmptyMsg( "tag-$tagName-description" ) ? '' : $msg; - $tag['description'] = $msg; + $msg = wfMessage( "tag-$tagName-description" ); + $tag['description'] = $msg->exists() ? $msg->text() : ''; } if ( $this->fld_hitcount ) { -- 2.20.1