aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-01-16 13:17:29 +0000
committermarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-01-16 13:17:29 +0000
commit4bf078505fa18f7a337ea63a689b773a76dd0ebc (patch)
tree609729396be3b7b96b5ed26ab103fe552214204a
parent35d44c0eb3fc509eefbbb42ec72ccb82e9a4acd7 (diff)
downloadelgg-4bf078505fa18f7a337ea63a689b773a76dd0ebc.tar.gz
elgg-4bf078505fa18f7a337ea63a689b773a76dd0ebc.tar.bz2
Widget save errors now use correct message box
git-svn-id: https://code.elgg.org/elgg/trunk@2575 36083f99-b078-4883-b0ff-0f9b5a30f544
-rw-r--r--actions/widgets/add.php2
-rw-r--r--actions/widgets/reorder.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/actions/widgets/add.php b/actions/widgets/add.php
index 07e167a96..ffb65d7da 100644
--- a/actions/widgets/add.php
+++ b/actions/widgets/add.php
@@ -35,7 +35,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'));
}
forward($_SERVER['HTTP_REFERER']);
diff --git a/actions/widgets/reorder.php b/actions/widgets/reorder.php
index ff0fa4b52..5d613fe0a 100644
--- a/actions/widgets/reorder.php
+++ b/actions/widgets/reorder.php
@@ -24,7 +24,7 @@
if ($result) {
system_message(elgg_echo('widgets:panel:save:success'));
} else {
- system_message(elgg_echo('widgets:panel:save:failure'));
+ register_error(elgg_echo('widgets:panel:save:failure'));
}
forward($_SERVER['HTTP_REFERER']);