aboutsummaryrefslogtreecommitdiff
path: root/actions/widgets/save.php
diff options
context:
space:
mode:
Diffstat (limited to 'actions/widgets/save.php')
-rw-r--r--actions/widgets/save.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/actions/widgets/save.php b/actions/widgets/save.php
index 5032f8a0e..40d62c735 100644
--- a/actions/widgets/save.php
+++ b/actions/widgets/save.php
@@ -16,7 +16,7 @@
$params = $_REQUEST['params'];
$pageurl = get_input('pageurl');
$noforward = get_input('noforward',false);
-
+
$result = false;
if (!empty($guid)) {
@@ -28,7 +28,7 @@
if ($result) {
system_message(elgg_echo('widgets:save:success'));
} else {
- system_message(elgg_echo('widgets:save:failure'));
+ register_error(elgg_echo('widgets:save:failure'));
}
if (!$noforward)