aboutsummaryrefslogtreecommitdiff
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
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
-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