aboutsummaryrefslogtreecommitdiff
path: root/views/default
diff options
context:
space:
mode:
authormarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-02-09 14:44:11 +0000
committermarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-02-09 14:44:11 +0000
commit7998ac7836f902cf98e19c02472548a1dd213236 (patch)
treefe026fdcb540e587de340758db0bf6e8f2409533 /views/default
parent3faf72aa446838d637712069588dd842a59cf088 (diff)
downloadelgg-7998ac7836f902cf98e19c02472548a1dd213236.tar.gz
elgg-7998ac7836f902cf98e19c02472548a1dd213236.tar.bz2
Added default to confirm link.
git-svn-id: https://code.elgg.org/elgg/trunk@2684 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default')
-rw-r--r--views/default/output/confirmlink.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/views/default/output/confirmlink.php b/views/default/output/confirmlink.php
index 08aec8a54..fb6d5a893 100644
--- a/views/default/output/confirmlink.php
+++ b/views/default/output/confirmlink.php
@@ -17,5 +17,8 @@
*
*/
+ $confirm = $vars['confirm'];
+ if (!$confirm)
+ $confirm = elgg_echo('question:areyousure');
?>
-<a href="<?php echo $vars['href']; ?>" onclick="return confirm('<?php echo addslashes($vars['confirm']); ?>');"><?php echo $vars['text']; ?></a> \ No newline at end of file
+<a href="<?php echo $vars['href']; ?>" onclick="return confirm('<?php echo addslashes($confirm); ?>');"><?php echo $vars['text']; ?></a> \ No newline at end of file