From 780481528d85fd74660a95a48474bd25b2d8804f Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Sun, 3 Dec 2017 22:38:52 -0500 Subject: [PATCH] Update function calls - Add use statement - Remove require --- ldapauth/ldapauth.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/ldapauth/ldapauth.php b/ldapauth/ldapauth.php index 39be6910..d01f83ef 100755 --- a/ldapauth/ldapauth.php +++ b/ldapauth/ldapauth.php @@ -52,10 +52,8 @@ * * ...etc. */ - -require_once('include/user.php'); - use Friendica\Core\Config; +use Friendica\Model\User; function ldapauth_install() { @@ -179,7 +177,7 @@ function ldap_autocreateaccount($ldap_autocreateaccount, $username, $password, $ if (empty($results)) { if (strlen($email) > 0 && strlen($name) > 0) { $arr = array('username' => $name, 'nickname' => $username, 'email' => $email, 'password' => $password, 'verified' => 1); - $result = create_user($arr); + $result = User::create($arr); if ($result['success']) { logger("ldapauth: account " . $username . " created"); } else { -- 2.39.5