hrimhari / moodle-auth_emailadmin

Moodle plugin to provide email self-registration with admin confirmation
GNU General Public License v3.0
14 stars 20 forks source link

Moodle 3.1 compatible #10

Closed ewallah closed 7 years ago

ewallah commented 8 years ago

The old class constructor is deprecated in PHP7 and uses Events 1 API deprecated handlers

Possible changes: public function __construct() { $this->authtype = 'emailadmin'; $this->config = get_config('auth/emailadmin'); }

public function auth_plugin_email() { debugging('Use of class name as constructor is deprecated', DEBUG_DEVELOPER); self::__construct(); }

\core\event\user_created::create_from_userid($user->id)->trigger();

hrimhari commented 8 years ago

Thanks, I'll look into it toward the end of the month.

Best regards, Felipe

hrimhari commented 7 years ago

Should be fixed by now.