fixing syntax error - sorry for that

This commit is contained in:
Thomas Müller 2012-09-04 15:42:58 +03:00
parent e4e0b5a822
commit 2028500c0a
1 changed files with 4 additions and 4 deletions

View File

@ -78,19 +78,19 @@ class OC{
require_once $path;
}
elseif(strpos($className, 'OC_')===0) {
$path = strtolower(str_replace('_', '/', substr($className,3)) . '.php');
$path = strtolower(str_replace('_', '/', substr($className, 3)) . '.php');
}
elseif(strpos($className, 'OCP\\')===0) {
$path = 'public/'.strtolower(str_replace('\\',' /',s ubstr($className,3)) . '.php');
$path = 'public/'.strtolower(str_replace('\\',' /', substr($className, 3)) . '.php');
}
elseif(strpos($className, 'OCA\\')===0) {
$path = 'apps/'.strtolower(str_replace('\\', '/', substr($className,3)) . '.php');
$path = 'apps/'.strtolower(str_replace('\\', '/', substr($className, 3)) . '.php');
}
elseif(strpos($className, 'Sabre_')===0) {
$path = str_replace('_', '/', $className) . '.php';
}
elseif(strpos($className,'Test_')===0) {
$path = 'tests/lib/'.strtolower(str_replace('_', '/', substr($className,5 )) . '.php');
$path = 'tests/lib/'.strtolower(str_replace('_', '/', substr($className, 5)) . '.php');
}else{
return false;
}