From 988be3520fae4686f120c3063c713665d39cea96 Mon Sep 17 00:00:00 2001 From: cash Date: Sun, 3 Apr 2011 12:30:51 +0000 Subject: output/confirmlink now supports title attribute git-svn-id: http://code.elgg.org/elgg/trunk@8928 36083f99-b078-4883-b0ff-0f9b5a30f544 --- views/default/output/confirmlink.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'views/default/output/confirmlink.php') 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']); -- cgit v1.2.3