From: Hypolite Petovan Date: Mon, 4 Dec 2017 03:38:52 +0000 (-0500) Subject: Update function calls X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=780481528d85fd74660a95a48474bd25b2d8804f;p=friendica-addons.git Update function calls - Add use statement - Remove require --- 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 {