From 731e82a52ebdc35750ec8d680fd5cd1ad9705f4a Mon Sep 17 00:00:00 2001 From: Dan Abel Date: Tue, 4 Dec 2018 12:30:00 +0000 Subject: [PATCH] Change constructor function name from the class name to __construct() inline with PHP7 conventions. --- auth.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/auth.php b/auth.php index 3818c69..b513d8a 100644 --- a/auth.php +++ b/auth.php @@ -27,7 +27,7 @@ class auth_plugin_wp2moodle extends auth_plugin_base { /** * Constructor. */ - function auth_plugin_wp2moodle() { + function __construct() { $this->authtype = 'wp2moodle'; $this->config = get_config('auth/wp2moodle'); }