diff options
author | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-05-14 20:01:59 +0000 |
---|---|---|
committer | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-05-14 20:01:59 +0000 |
commit | b6aaba915151dd07800761a01b67ffffaee1302b (patch) | |
tree | 53c30035411460270278943f2427405233b34fac /actions/widgets/save.php | |
parent | ffbd7cd4179a0186dc674c2d24f578660cc75df0 (diff) | |
download | elgg-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.php | 8 |
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 |