aboutsummaryrefslogtreecommitdiff
path: root/views/default/output
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-04-03 12:30:51 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-04-03 12:30:51 +0000
commit988be3520fae4686f120c3063c713665d39cea96 (patch)
treee7c21c593e1fe8446e1b508b41137a748c2b4302 /views/default/output
parent787000d1884bdd13561eb83d2f0600609e02e1ad (diff)
downloadelgg-988be3520fae4686f120c3063c713665d39cea96.tar.gz
elgg-988be3520fae4686f120c3063c713665d39cea96.tar.bz2
output/confirmlink now supports title attribute
git-svn-id: http://code.elgg.org/elgg/trunk@8928 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default/output')
-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']);