diff options
-rwxr-xr-x | boot.php | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -632,6 +632,19 @@ class ZotlabsAutoloader { return TRUE; } } + $arr = explode('\\',$className); + if($arr && count($arr) > 1) { + if(! $arr[0]) + $arr = array_shift($arr); + $filename = 'addon/' . lcfirst($arr[0]) . '/' . $arr[1] . ((count($arr) === 2) ? '.php' : '/' . $arr[2] . ".php"); + if (file_exists($filename)) { + include($filename); + if (class_exists($className)) { + return TRUE; + } + } + } + return FALSE; } } |