diff options
author | Thomas Tanghus <thomas@tanghus.net> | 2012-12-11 16:00:48 +0100 |
---|---|---|
committer | Thomas Tanghus <thomas@tanghus.net> | 2012-12-11 16:00:48 +0100 |
commit | af12b0f5da25d2c01bf57ef1af882b92c77f934e (patch) | |
tree | e6d8250e588e5e455e98cd827475ad5672ea8add | |
parent | eb7dbf3701d27faffb7cdf612da06a158942787f (diff) | |
download | nextcloud-server-af12b0f5da25d2c01bf57ef1af882b92c77f934e.tar.gz nextcloud-server-af12b0f5da25d2c01bf57ef1af882b92c77f934e.zip |
Autoload classes with 'OC' namespace prefix.
-rw-r--r-- | lib/base.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/base.php b/lib/base.php index bde65dcc7d1..88628452613 100644 --- a/lib/base.php +++ b/lib/base.php @@ -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'); } |