forked from GNUsocial/gnu-social
plugins onAutoload now only overloads if necessary (extlibs etc.)
lib/plugin.php now has a parent onAutoload function that finds most common files that are used in plugins (actions, dataobjects, forms, libs etc.) if they are put in the standardised directories ('actions', 'classes', 'forms', 'lib' and perhaps some others in the future).
This commit is contained in:
@@ -54,10 +54,10 @@ class CasAuthenticationPlugin extends AuthenticationPlugin
|
||||
case 'phpCAS':
|
||||
require_once(INSTALLDIR.'/plugins/CasAuthentication/extlib/CAS.php');
|
||||
return false;
|
||||
case 'CasloginAction':
|
||||
require_once(INSTALLDIR.'/plugins/CasAuthentication/' . strtolower(mb_substr($cls, 0, -6)) . '.php');
|
||||
return false;
|
||||
}
|
||||
|
||||
// if it's not our exception, try standard places
|
||||
return parent::onAutoload($cls);
|
||||
}
|
||||
|
||||
function onArgsInitialize(&$args)
|
||||
|
Reference in New Issue
Block a user