From e54e40237040dfa7f9e3ec530f1cadcea1561de0 Mon Sep 17 00:00:00 2001
From: Mitan Omar <22119228+MitanOmar@users.noreply.github.com>
Date: Wed, 1 May 2019 00:56:35 +0200
Subject: [PATCH] replace the hook name
the hook ( login_data_no_error ) is not useful if $_GET[return] is defined
---
ucp.php | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/ucp.php b/ucp.php
index 5faaae3..b7c1c0f 100755
--- a/ucp.php
+++ b/ucp.php
@@ -92,16 +92,16 @@ switch (g('go'))
}
else
{
- if (ig('return'))
+ $errorpage = true;
+ is_array($plugin_run_result = Plugins::getInstance()->run('login_data_no_error', get_defined_vars())) ? extract($plugin_run_result) : null; //run hook
+
+ if (ig('return'))
{
redirect(urldecode(g('return')));
$SQL->close();
exit;
}
-
- $errorpage = true;
- is_array($plugin_run_result = Plugins::getInstance()->run('login_data_no_error', get_defined_vars())) ? extract($plugin_run_result) : null; //run hook
-
+
$text = $lang['LOGIN_SUCCESFUL'] . '
' . $lang['HOME'] . '';
kleeja_info($text, '', true, $config['siteurl'], 1);
}