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:
@@ -91,27 +91,6 @@ class DomainStatusNetworkPlugin extends Plugin
|
||||
}
|
||||
}
|
||||
|
||||
function onAutoload($cls)
|
||||
{
|
||||
$dir = dirname(__FILE__);
|
||||
|
||||
switch ($cls)
|
||||
{
|
||||
case 'GlobalregisterAction':
|
||||
case 'GloballoginAction':
|
||||
case 'GlobalrecoverAction':
|
||||
include_once $dir . '/actions/' . strtolower(mb_substr($cls, 0, -6)) . '.php';
|
||||
return false;
|
||||
case 'DomainStatusNetworkInstaller':
|
||||
case 'GlobalApiAction':
|
||||
case 'FreeEmail':
|
||||
include_once $dir . '/lib/' . strtolower($cls) . '.php';
|
||||
return false;
|
||||
default:
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
static function toDomain($raw)
|
||||
{
|
||||
$parts = explode('@', $raw);
|
||||
|
Reference in New Issue
Block a user