diff --git a/init.php b/init.php index d19a275..db4d796 100644 --- a/init.php +++ b/init.php @@ -21,7 +21,7 @@ // who wrote this plugin? 'plugin_developer' => 'kleeja.com', // this plugin version - 'plugin_version' => '1.0.3', + 'plugin_version' => '1.0.4', // explain what is this plugin, why should i use it? 'plugin_description' => [ 'en' => 'VBulletin Membership Integration', @@ -264,7 +264,7 @@ $return_now = true; - $login_status = vbulletin_auth_login($args['name'], $args['pass'], $args['hashed'], $args['expire'], $args['loginadm']); + $login_status = vbulletin_auth_login($args['name'], $args['pass'], $args['expire'], $args['hashed'], $args['loginadm']); return compact('return_now', 'login_status'); }, diff --git a/vbulletin.php b/vbulletin.php index caf1843..a1c0538 100755 --- a/vbulletin.php +++ b/vbulletin.php @@ -15,7 +15,7 @@ } -if (! function_exists('vbulletin_auth_login')) +if (! function_exists('vbulletin_auth_connect')) { function vbulletin_auth_connect() { @@ -108,7 +108,7 @@ function vbulletin_auth_connect() if (! function_exists('vbulletin_auth_login')) { - function vbulletin_auth_login($name, $pass, $hashed = false, $expire, $loginadm = false, $return_username = false) + function vbulletin_auth_login($name, $pass, $expire, $hashed = false, $loginadm = false, $return_username = false) { global $config, $usrcp, $userinfo; @@ -235,6 +235,6 @@ function vbulletin_auth_login($name, $pass, $hashed = false, $expire, $loginadm { function vbulletin_auth_username($user_id) { - return vbulletin_auth_login($user_id, false, false, 0, false, true); + return vbulletin_auth_login($user_id, false, 0, false, false, true); } }