aboutsummaryrefslogtreecommitdiff
path: root/views
diff options
context:
space:
mode:
Diffstat (limited to 'views')
-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