Remove left-over use of wfMsg
authordaniel <daniel.kinzler@wikimedia.de>
Fri, 5 Oct 2012 13:15:11 +0000 (15:15 +0200)
committerdaniel <daniel.kinzler@wikimedia.de>
Fri, 5 Oct 2012 13:15:11 +0000 (15:15 +0200)
Change-Id: If80d7bf69393a6c95797e1fe0732df7270d5184c

includes/content/ContentHandler.php

index 294dafd..6d57e71 100644 (file)
@@ -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() {