From 2839caa7e780a40e8ad8d8bad79351452e528a74 Mon Sep 17 00:00:00 2001
From: Aleksander Machniak <alec@alec.pl>
Date: Tue, 17 Feb 2015 06:49:54 -0500
Subject: [PATCH] Fix regression where Help toolbar buttons have had incorrect title
---
plugins/help/help.php | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/plugins/help/help.php b/plugins/help/help.php
index df08caf..d71cd0e 100644
--- a/plugins/help/help.php
+++ b/plugins/help/help.php
@@ -82,8 +82,14 @@
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);
}
--
Gitblit v1.9.1