git.gnu.io has moved to IP address 209.51.188.249 -- please double check where you are logging in.

Commit f704a702 authored by Evan Prodromou's avatar Evan Prodromou

OpenIDPlugin autoloads class files

parent 32453577
......@@ -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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment