Rm useless checks which breaks if descriptionmsg is an array
authorNiklas Laxström <nikerabbit@users.mediawiki.org>
Sat, 25 Dec 2010 12:30:12 +0000 (12:30 +0000)
committerNiklas Laxström <nikerabbit@users.mediawiki.org>
Sat, 25 Dec 2010 12:30:12 +0000 (12:30 +0000)
includes/specials/SpecialVersion.php

index cf3c5fb..89952e0 100644 (file)
@@ -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 ) {