From 948cb293023b64512ee4220ddc4198769d5eb938 Mon Sep 17 00:00:00 2001 From: Mike Macgirvin Date: Sat, 9 Oct 2010 01:05:53 -0700 Subject: after login from arbitrary page, send back to that page --- include/auth.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include/auth.php') diff --git a/include/auth.php b/include/auth.php index 6a50362d6..e30b94d2e 100644 --- a/include/auth.php +++ b/include/auth.php @@ -71,8 +71,8 @@ else { $a->cid = $r[0]['id']; $_SESSION['cid'] = $a->cid; } - - + if(($a->module !== 'home') && isset($_SESSION['return_url'])) + goaway($a->get_baseurl() . '/' . $_SESSION['return_url']); } } -- cgit v1.2.3