// Fix autoload
This commit is contained in:
1 parent
b44c0f092d
commit
a2f5ff05e8
1 file changed
+1
-1
@@ -80,7 +80,7 @@ class Autoload
|
||||
// regenerate the class index if the requested class is not found in the index or if the requested file doesn't exists
|
||||
if (!isset($this->index[$classname])
|
||||
|| ($this->index[$classname] && !is_file($this->root_dir.$this->index[$classname]))
|
||||
|| (isset($this->index[$classname.'Core']) && $this->index[$classname.'Core'] && !is_file($this->root_dir.$this->index[$classname])))
|
||||
|| (isset($this->index[$classname.'Core']) && $this->index[$classname.'Core'] && !is_file($this->root_dir.$this->index[$classname.'Core'])))
|
||||
$this->generateIndex();
|
||||
|
||||
// If $classname has not core suffix (E.g. Shop, Product)
|
||||
|
||||
Reference in new issue
Block a user