From 901e45d67241ab41d852ef74a8fd4cdbaefa2f9b Mon Sep 17 00:00:00 2001 From: the-djmaze <> Date: Tue, 15 Nov 2022 11:56:30 +0100 Subject: [PATCH] And a custom set_include_path() for #450 --- plugins/login-oauth2/index.php | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/login-oauth2/index.php b/plugins/login-oauth2/index.php index 7787ae23b..1e83dd328 100644 --- a/plugins/login-oauth2/index.php +++ b/plugins/login-oauth2/index.php @@ -33,6 +33,7 @@ class LoginOAuth2Plugin extends \RainLoop\Plugins\AbstractPlugin // $this->addHook('sieve.after-login', array($this, $oSieveClient, $oSettings)); $this->addHook('filter.account', 'filterAccount'); +// set_include_path(get_include_path() . PATH_SEPARATOR . __DIR__); spl_autoload_register(function($classname){ if (str_starts_with($classname, 'OAuth2\\')) { include_once __DIR__ . strtr("\\{$sClassName}", '\\', DIRECTORY_SEPARATOR) . '.php';