From: daniel Date: Fri, 5 Oct 2012 13:15:11 +0000 (+0200) Subject: Remove left-over use of wfMsg X-Git-Tag: 1.31.0-rc.0~22097^2^2~9^2 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/%7B%7B%20url_for%28%27admin_users%27%29%20%7D%7D?a=commitdiff_plain;h=6564781c2ae82adee37b88f585ad6967ae9548ff;p=lhc%2Fweb%2Fwiklou.git Remove left-over use of wfMsg Change-Id: If80d7bf69393a6c95797e1fe0732df7270d5184c --- diff --git a/includes/content/ContentHandler.php b/includes/content/ContentHandler.php index 294dafd09b..6d57e7118a 100644 --- a/includes/content/ContentHandler.php +++ b/includes/content/ContentHandler.php @@ -329,8 +329,9 @@ abstract class ContentHandler { public static function getLocalizedName( $name ) { $key = "content-model-$name"; - if ( wfEmptyMsg( $key ) ) return $name; - else return wfMsg( $key ); + $msg = wfMessage( $key ); + + return $msg->exists() ? $msg->plain() : $name; } public static function getContentModels() {