aboutsummaryrefslogtreecommitdiff
path: root/views/default/output/confirmlink.php
diff options
context:
space:
mode:
Diffstat (limited to 'views/default/output/confirmlink.php')
-rw-r--r--views/default/output/confirmlink.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/views/default/output/confirmlink.php b/views/default/output/confirmlink.php
index 58d1f5183..967094113 100644
--- a/views/default/output/confirmlink.php
+++ b/views/default/output/confirmlink.php
@@ -8,6 +8,7 @@
*
* @uses $vars['text'] The text of the link
* @uses $vars['href'] The address
+ * @uses $vars['title'] The title text (defaults to confirm text)
* @uses $vars['confirm'] The dialog text
* @uses $vars['text_encode'] Encode special characters? (false)
*/
@@ -23,7 +24,10 @@ if ($encode) {
$text = htmlspecialchars($text, ENT_QUOTES, 'UTF-8', false);
}
-$vars['title'] = addslashes($confirm);
+if (!isset($vars['title'])) {
+ $vars['title'] = addslashes($confirm);
+}
+
if (isset($vars['class'])) {
if (!is_array($vars['class'])) {
$vars['class'] = array($vars['class']);