aboutsummaryrefslogtreecommitdiff
path: root/actions/widgets/save.php
diff options
context:
space:
mode:
authorbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-05-14 20:01:59 +0000
committerbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-05-14 20:01:59 +0000
commitb6aaba915151dd07800761a01b67ffffaee1302b (patch)
tree53c30035411460270278943f2427405233b34fac /actions/widgets/save.php
parentffbd7cd4179a0186dc674c2d24f578660cc75df0 (diff)
downloadelgg-b6aaba915151dd07800761a01b67ffffaee1302b.tar.gz
elgg-b6aaba915151dd07800761a01b67ffffaee1302b.tar.bz2
merge -r5898:5928 (not excluding riverdashboard, notifications, and messageboard) from 1.7 to trunk.
git-svn-id: http://code.elgg.org/elgg/trunk@6058 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'actions/widgets/save.php')
-rw-r--r--actions/widgets/save.php8
1 files changed, 5 insertions, 3 deletions
diff --git a/actions/widgets/save.php b/actions/widgets/save.php
index 7e9c91dcd..01459f660 100644
--- a/actions/widgets/save.php
+++ b/actions/widgets/save.php
@@ -19,12 +19,14 @@ if (!empty($guid)) {
$result = save_widget_info($guid,$params);
}
+if ($noforward) {
+ exit;
+}
+
if ($result) {
system_message(elgg_echo('widgets:save:success'));
} else {
register_error(elgg_echo('widgets:save:failure'));
}
-if (!$noforward) {
- forward($_SERVER['HTTP_REFERER']);
-}
+forward($_SERVER['HTTP_REFERER']); \ No newline at end of file