Simplify message existence checks by using wfMessage() instead of wfEmptyMsg()
[lhc/web/wiklou.git] / includes / User.php
index 186072c..20946f5 100644 (file)
@@ -3610,10 +3610,8 @@ class User {
         */
        static function getRightDescription( $right ) {
                $key = "right-$right";
-               $name = wfMsg( $key );
-               return $name == '' || wfEmptyMsg( $key )
-                       ? $right
-                       : $name;
+               $msg = wfMessage( $key );
+               return $msg->isBlank() ? $right : $msg->text();
        }
 
        /**