aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB')
-rw-r--r--phpBB/includes/session.php7
1 files changed, 3 insertions, 4 deletions
diff --git a/phpBB/includes/session.php b/phpBB/includes/session.php
index 78c22c142d..d467633abd 100644
--- a/phpBB/includes/session.php
+++ b/phpBB/includes/session.php
@@ -713,14 +713,13 @@ class auth
// Authentication plug-ins is largely down to Sergey Kanareykin, our thanks to him.
function login($username, $password, $autologin = false)
{
- global $config, $user, $phpEx;
+ global $config, $user, $phpbb_root_path, $phpEx;
$method = trim($config['auth_method']);
- // NOTE: don't we need $phpbb_root_path here?
- if (file_exists('includes/auth/auth_' . $method . '.' . $phpEx))
+ if (file_exists($phpbb_root_path . 'includes/auth/auth_' . $method . '.' . $phpEx))
{
- include_once('includes/auth/auth_' . $method . '.' . $phpEx);
+ include_once($phpbb_root_path . 'includes/auth/auth_' . $method . '.' . $phpEx);
$method = 'login_' . $method;
if (function_exists($method))