aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--languages/en.php5
-rw-r--r--views/default/output/confirmlink.php5
2 files changed, 9 insertions, 1 deletions
diff --git a/languages/en.php b/languages/en.php
index 67c792226..cbac37caa 100644
--- a/languages/en.php
+++ b/languages/en.php
@@ -625,6 +625,11 @@ To remove a widget drag it back to the <b>Widget gallery</b>.",
/**
+ * Generic questions
+ */
+ 'question:areyousure' => 'Are you sure?',
+
+ /**
* Generic data words
*/
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