summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2015-02-16 09:35:28 -0500
committerAleksander Machniak <alec@alec.pl>2015-02-16 09:35:28 -0500
commitaf6e4741416ad35b180430db10f54a277c40faa0 (patch)
tree1de87c453e276bccb5a5b0fc2f87c5568e6d8d58 /plugins
parentae73c26f29aa230ba5ae3d86ef6d0c7886b7e657 (diff)
Fix regression where Help toolbar buttons have had incorrect title
Diffstat (limited to 'plugins')
-rw-r--r--plugins/help/help.php6
1 files changed, 6 insertions, 0 deletions
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);
}