Skip to content

Commit

Permalink
Merge pull request #2 from kleeja-official/hanirouatbi1-patch-1
Browse files Browse the repository at this point in the history
Fix for php 8
  • Loading branch information
RouatbiH authored Jun 30, 2024
2 parents 8c6e53c + 40d898e commit 6c733c4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions init.php
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down Expand Up @@ -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');
},
Expand Down
6 changes: 3 additions & 3 deletions vbulletin.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
}


if (! function_exists('vbulletin_auth_login'))
if (! function_exists('vbulletin_auth_connect'))
{
function vbulletin_auth_connect()
{
Expand Down Expand Up @@ -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;

Expand Down Expand Up @@ -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);
}
}

0 comments on commit 6c733c4

Please sign in to comment.