From b1dbd5694d1a45b1d281c1375d5de9cb2fa0c9ff Mon Sep 17 00:00:00 2001 From: Aryeh Gregor Date: Wed, 10 Jan 2007 05:51:10 +0000 Subject: [PATCH] Compatibility for last commit: strip [alt-whatever] suffix if it was previously hardcoded, so we don't get duplicate tips --- includes/Linker.php | 2 ++ 1 file changed, 2 insertions(+) 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); -- 2.20.1