Support for OCA namespace
This commit is contained in:
parent
5888cb48b6
commit
57c375ea24
|
@ -83,6 +83,9 @@ class OC{
|
|||
elseif(strpos($className,'OCP\\')===0){
|
||||
require_once 'public/'.strtolower(str_replace('\\','/',substr($className,3)) . '.php');
|
||||
}
|
||||
elseif(strpos($className,'OCA\\')===0){
|
||||
require_once 'apps/'.strtolower(str_replace('\\','/',substr($className,3)) . '.php');
|
||||
}
|
||||
elseif(strpos($className,'Sabre_')===0) {
|
||||
require_once str_replace('_','/',$className) . '.php';
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue