From: Niklas Laxström Date: Sat, 25 Dec 2010 12:30:12 +0000 (+0000) Subject: Rm useless checks which breaks if descriptionmsg is an array X-Git-Tag: 1.31.0-rc.0~33100 X-Git-Url: http://git.cyclocoop.org/%22.%28%24lien.?a=commitdiff_plain;h=5ef8d8bbe4ae5b43f6a10b7891b76bd8692ff02b;p=lhc%2Fweb%2Fwiklou.git Rm useless checks which breaks if descriptionmsg is an array --- diff --git a/includes/specials/SpecialVersion.php b/includes/specials/SpecialVersion.php index cf3c5fb6fb..89952e0172 100644 --- a/includes/specials/SpecialVersion.php +++ b/includes/specials/SpecialVersion.php @@ -418,13 +418,10 @@ class SpecialVersion extends SpecialPage { $descriptionMsgKey = $descriptionMsg[0]; // Get the message key array_shift( $descriptionMsg ); // Shift out the message key to get the parameters only array_map( "htmlspecialchars", $descriptionMsg ); // For sanity - $msg = wfMsg( $descriptionMsgKey, $descriptionMsg ); + $description = wfMsg( $descriptionMsgKey, $descriptionMsg ); } else { - $msg = wfMsg( $descriptionMsg ); + $description = wfMsg( $descriptionMsg ); } - if ( !wfEmptyMsg( $descriptionMsg, $msg ) && $msg != '' ) { - $description = $msg; - } } if ( $svnText !== false ) {