From 7998ac7836f902cf98e19c02472548a1dd213236 Mon Sep 17 00:00:00 2001 From: marcus Date: Mon, 9 Feb 2009 14:44:11 +0000 Subject: Added default to confirm link. git-svn-id: https://code.elgg.org/elgg/trunk@2684 36083f99-b078-4883-b0ff-0f9b5a30f544 --- languages/en.php | 5 +++++ views/default/output/confirmlink.php | 5 ++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/languages/en.php b/languages/en.php index 67c792226..cbac37caa 100644 --- a/languages/en.php +++ b/languages/en.php @@ -624,6 +624,11 @@ To remove a widget drag it back to the Widget gallery.", 'link:text' => 'view link', + /** + * 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'); ?> - \ No newline at end of file + \ No newline at end of file -- cgit v1.2.3