From 716e4d394b78825cd5bb27876a138f74e81732a2 Mon Sep 17 00:00:00 2001 From: Krivchikov Dmitry Date: Mon, 2 May 2016 14:24:32 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9F=D1=80=D0=B8=20=D0=B2=D1=8B=D1=85=D0=BE?= =?UTF-8?q?=D0=B4=D0=B5=20=D0=BF=D0=BE=D0=BB=D1=8C=D0=B7=D0=BE=D0=B2=D0=B0?= =?UTF-8?q?=D1=82=D0=B5=D0=BB=D1=8C=20=D0=BE=D1=81=D1=82=D0=B0=D1=91=D1=82?= =?UTF-8?q?=D1=81=D1=8F=20=D0=BD=D0=B0=20=D1=82=D0=BE=D0=B9-=D0=B6=D0=B5?= =?UTF-8?q?=20=D1=81=D1=82=D1=80=D0=B0=D0=BD=D0=B8=D1=86=D0=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- controllers/IndexController.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/controllers/IndexController.php b/controllers/IndexController.php index 9e4a596..4485832 100644 --- a/controllers/IndexController.php +++ b/controllers/IndexController.php @@ -99,8 +99,9 @@ class IndexController extends Controller static function actionLogout() { + $referrer = (isset($_SERVER['HTTP_REFERER']) && strpos($_SERVER['HTTP_REFERER'], 'wikipoints.ru') !== FALSE) ? $_SERVER['HTTP_REFERER'] : '/'; App::userLogout(); - App::redirect('/'); + App::redirect($referrer); } static function actionLogin()