From: Aryeh Gregor Date: Wed, 10 Jan 2007 05:51:10 +0000 (+0000) Subject: Compatibility for last commit: strip [alt-whatever] suffix if it was previously hardc... X-Git-Tag: 1.31.0-rc.0~54540 X-Git-Url: http://git.cyclocoop.org//%22%22.str_replace%28%27%22%27%2C?a=commitdiff_plain;h=b1dbd5694d1a45b1d281c1375d5de9cb2fa0c9ff;p=lhc%2Fweb%2Fwiklou.git Compatibility for last commit: strip [alt-whatever] suffix if it was previously hardcoded, so we don't get duplicate tips --- diff --git a/includes/Linker.php b/includes/Linker.php index bd394c4ff4..192597ac6a 100644 --- a/includes/Linker.php +++ b/includes/Linker.php @@ -1216,6 +1216,8 @@ class Linker { $tooltip = wfMsg('tooltip-'.$name); if (!wfEmptyMsg('tooltip-'.$name, $tooltip) && $tooltip != '-') { + // Compatibility: formerly some tooltips had [alt-.] hardcoded + $tooltip = preg_replace( "/ ?\[alt-.\]$/", '', $tooltip ); $out .= ' title="'.htmlspecialchars($tooltip); } $accesskey = wfMsg('accesskey-'.$name);