Skip to content
Snippets Groups Projects
Commit 2361639a authored by Thomas Müller's avatar Thomas Müller
Browse files

Merge pull request #825 from owncloud/oc_namespace

Autoload classes with 'OC' namespace prefix.
parents 2afc5abe af12b0f5
No related branches found
No related tags found
No related merge requests found
......@@ -90,6 +90,9 @@ class OC{
elseif(strpos($className, 'OC_')===0) {
$path = strtolower(str_replace('_', '/', substr($className, 3)) . '.php');
}
elseif(strpos($className, 'OC\\')===0) {
$path = strtolower(str_replace('\\', '/', substr($className, 3)) . '.php');
}
elseif(strpos($className, 'OCP\\')===0) {
$path = 'public/'.strtolower(str_replace('\\', '/', substr($className, 3)) . '.php');
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment