diff options
Diffstat (limited to 'actions/widgets/save.php')
-rw-r--r-- | actions/widgets/save.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/actions/widgets/save.php b/actions/widgets/save.php index deb4bb911..5032f8a0e 100644 --- a/actions/widgets/save.php +++ b/actions/widgets/save.php @@ -15,6 +15,7 @@ $guid = get_input('guid');
$params = $_REQUEST['params'];
$pageurl = get_input('pageurl');
+ $noforward = get_input('noforward',false);
$result = false;
@@ -30,6 +31,7 @@ system_message(elgg_echo('widgets:save:failure'));
}
- forward($_SERVER['HTTP_REFERER']);
+ if (!$noforward)
+ forward($_SERVER['HTTP_REFERER']);
?>
\ No newline at end of file |