diff options
author | Maurício Meneghini Fauth <mauriciofauth@gmail.com> | 2017-06-02 20:09:23 +0300 |
---|---|---|
committer | Maurício Meneghini Fauth <mauriciofauth@gmail.com> | 2017-06-03 06:52:22 +0300 |
commit | e330402b5b57380587c576d1c03c542176423681 (patch) | |
tree | bcd0552fab0be5eb957d053ab32ed7d65c8d4b85 /logout.php | |
parent | 2af08b93f10660db3e14884ff792ed153ec9df50 (diff) |
Refactor the core functions into static methods
Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
Diffstat (limited to 'logout.php')
-rw-r--r-- | logout.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/logout.php b/logout.php index 01924339f3..ff31a307a1 100644 --- a/logout.php +++ b/logout.php @@ -5,11 +5,13 @@ * * @package PhpMyAdmin */ + +use PMA\libraries\Core; + require_once 'libraries/common.inc.php'; if ($_SERVER['REQUEST_METHOD'] != 'POST' || $token_mismatch) { - PMA_sendHeaderLocation('./index.php'); + Core::sendHeaderLocation('./index.php'); } else { $auth_plugin->logOut(); } - |