http://www.mediawiki.org/wiki/Special:Code/MediaWiki/90542
Revision: 90542 Author: ialex Date: 2011-06-21 20:05:00 +0000 (Tue, 21 Jun 2011) Log Message: ----------- Simplify checks by using wfMessage() instead of wfEmptyMsg() Modified Paths: -------------- trunk/phase3/includes/api/ApiQueryTags.php Modified: trunk/phase3/includes/api/ApiQueryTags.php =================================================================== --- trunk/phase3/includes/api/ApiQueryTags.php 2011-06-21 19:19:51 UTC (rev 90541) +++ trunk/phase3/includes/api/ApiQueryTags.php 2011-06-21 20:05:00 UTC (rev 90542) @@ -113,9 +113,8 @@ } 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 ) { _______________________________________________ MediaWiki-CVS mailing list MediaWiki-CVS@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs