From af6e4741416ad35b180430db10f54a277c40faa0 Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Mon, 16 Feb 2015 09:35:28 -0500 Subject: Fix regression where Help toolbar buttons have had incorrect title --- plugins/help/help.php | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'plugins') diff --git a/plugins/help/help.php b/plugins/help/help.php index df08caf71..d71cd0ec6 100644 --- a/plugins/help/help.php +++ b/plugins/help/help.php @@ -82,8 +82,14 @@ class help extends rcube_plugin function tablink($attrib) { $rcmail = rcmail::get_instance(); + $attrib['name'] = 'helplink' . $attrib['action']; $attrib['href'] = $rcmail->url(array('_action' => $attrib['action'], '_extwin' => !empty($_REQUEST['_extwin']) ? 1 : null)); + + // title might be already translated here, so revert to it's initial value + // so button() will translate it correctly + $attrib['title'] = $attrib['label']; + return $rcmail->output->button($attrib); } -- cgit v1.2.3