From 0503b11840d170a7f22d0392d08677c19b663ac2 Mon Sep 17 00:00:00 2001 From: redmatrix Date: Sat, 14 May 2016 17:24:50 -0700 Subject: allow addon autoloaders to specify absolute namespace classes starting with \ --- boot.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'boot.php') diff --git a/boot.php b/boot.php index d5bde53ac..e90cd7c15 100755 --- a/boot.php +++ b/boot.php @@ -634,6 +634,8 @@ class ZotlabsAutoloader { } $arr = explode('\\',$className); if($arr && count($arr) > 1) { + if(! $arr[0]) + $arr = array_shift($arr); $filename = 'addon/' . lcfirst($arr[0]) . '/' . ucfirst($arr[1]) . ((count($arr) === 2) ? '.php' : '/' . ucfirst($arr[2]) . ".php"); if (file_exists($filename)) { include($filename); -- cgit v1.2.3