diff options
author | Arthur Schiwon <blizzz@owncloud.com> | 2012-07-20 17:42:32 +0200 |
---|---|---|
committer | Arthur Schiwon <blizzz@owncloud.com> | 2012-07-25 12:56:08 +0200 |
commit | 57c375ea245d57567316254df2968b5b929733a7 (patch) | |
tree | 56201ba0173b268742d2bb23f6a73d7f69b0ac7a /lib/base.php | |
parent | 5888cb48b6c33a19cf1b798f5bade48526afe651 (diff) | |
download | nextcloud-server-57c375ea245d57567316254df2968b5b929733a7.tar.gz nextcloud-server-57c375ea245d57567316254df2968b5b929733a7.zip |
Support for OCA namespace
Diffstat (limited to 'lib/base.php')
-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 631ed4fcce6..888dc265d64 100644 --- a/lib/base.php +++ b/lib/base.php @@ -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'; } |