aboutsummaryrefslogtreecommitdiff
path: root/engine
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-04-14 01:51:56 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-04-14 01:51:56 +0000
commitc38f617a9b4a8186574c64db6663b5582fd49acb (patch)
tree6786d332f78d44f0ab281bad1cb15931b6f1bd98 /engine
parent3d49441f503b1a25f68f8d56fdfb5582bf96bf8b (diff)
downloadelgg-c38f617a9b4a8186574c64db6663b5582fd49acb.tar.gz
elgg-c38f617a9b4a8186574c64db6663b5582fd49acb.tar.bz2
Fixes #3268 forwarding to referrer (fixed by ashwanthkumar)
git-svn-id: http://code.elgg.org/elgg/trunk@8995 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine')
-rw-r--r--engine/lib/actions.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/engine/lib/actions.php b/engine/lib/actions.php
index 407b99f87..47e4dd4a4 100644
--- a/engine/lib/actions.php
+++ b/engine/lib/actions.php
@@ -113,7 +113,11 @@ function action($action, $forwarder = "") {
register_error(elgg_echo('actionundefined', array($action)));
}
- forward($forwarder);
+ if (!empty($forwarder)) {
+ forward($forwarder);
+ } else {
+ forward(REFERER);
+ }
}
/**