From 2b1e09646bde659e7a060807d81811d2f6a4cc18 Mon Sep 17 00:00:00 2001 From: Diego Najar Date: Tue, 23 Oct 2018 20:25:06 +0200 Subject: [PATCH] After logout go to login page --- bl-kernel/admin/controllers/logout.php | 2 +- bl-kernel/helpers/redirect.class.php | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/bl-kernel/admin/controllers/logout.php b/bl-kernel/admin/controllers/logout.php index dbb5794e..68fbb5e7 100644 --- a/bl-kernel/admin/controllers/logout.php +++ b/bl-kernel/admin/controllers/logout.php @@ -21,5 +21,5 @@ // ============================================================================ if ($login->logout()) { - Redirect::home(); + Redirect::admin(); } diff --git a/bl-kernel/helpers/redirect.class.php b/bl-kernel/helpers/redirect.class.php index 6655faed..323d9185 100644 --- a/bl-kernel/helpers/redirect.class.php +++ b/bl-kernel/helpers/redirect.class.php @@ -22,4 +22,8 @@ class Redirect { self::url(HTML_PATH_ROOT); } + public static function admin() + { + self::url(HTML_PATH_ADMIN_ROOT); + } } \ No newline at end of file