Support for OCA namespace

This commit is contained in:
Arthur Schiwon 2012-07-20 17:42:32 +02:00
parent 5888cb48b6
commit 57c375ea24
1 changed files with 3 additions and 0 deletions

View File

@ -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';
}