From: Niklas Laxström Date: Sat, 25 Dec 2010 12:33:17 +0000 (+0000) Subject: Same for the tooltip, don't call twice X-Git-Tag: 1.31.0-rc.0~33099 X-Git-Url: https://git.cyclocoop.org/%20%27.%28%24debut%20%20%20%24par_page%29.%27?a=commitdiff_plain;h=690b0e131f37093a9b3b3270af84e6eec665ed03;p=lhc%2Fweb%2Fwiklou.git Same for the tooltip, don't call twice --- diff --git a/includes/Linker.php b/includes/Linker.php index fb1d7f16b2..0a22ad70e1 100644 --- a/includes/Linker.php +++ b/includes/Linker.php @@ -1634,10 +1634,12 @@ class Linker { public function titleAttrib( $name, $options = null ) { wfProfileIn( __METHOD__ ); - if ( wfEmptyMsg( "tooltip-$name" ) ) { + $message = wfMessage( "tooltip-$name" ); + + if ( !$message->exists() ) { $tooltip = false; } else { - $tooltip = wfMsg( "tooltip-$name" ); + $tooltip = $message->text(); # Compatibility: formerly some tooltips had [alt-.] hardcoded $tooltip = preg_replace( "/ ?\[alt-.\]$/", '', $tooltip ); # Message equal to '-' means suppress it.