From: Evan Prodromou Date: Tue, 4 Aug 2009 11:40:41 +0000 (-0400) Subject: OpenIDPlugin autoloads class files X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=f704a7029ee3a329608b288e61bd0c91f3efaf4e;p=quix0rs-gnu-social.git OpenIDPlugin autoloads class files --- diff --git a/plugins/OpenID/OpenIDPlugin.php b/plugins/OpenID/OpenIDPlugin.php index f76fe1e3c0..5d600159bf 100644 --- a/plugins/OpenID/OpenIDPlugin.php +++ b/plugins/OpenID/OpenIDPlugin.php @@ -99,4 +99,24 @@ class OpenIDPlugin extends Plugin return true; } + + function onAutoload($cls) + { + switch ($cls) + { + case 'OpenidloginAction': + case 'FinishopenidloginAction': + case 'FinishaddopenidAction': + case 'XrdsAction': + case 'PublicxrdsAction': + case 'OpenidsettingsAction': + require_once(INSTALLDIR.'/plugins/OpenID/' . strtolower(mb_substr($cls, 0, -6)) . '.php'); + return false; + case 'User_openid': + require_once(INSTALLDIR.'/plugins/OpenID/User_openid.php'); + return false; + default: + return true; + } + } } \ No newline at end of file