diff options
author | VicDeo <victor.dubiniuk@gmail.com> | 2013-03-31 06:10:47 -0700 |
---|---|---|
committer | VicDeo <victor.dubiniuk@gmail.com> | 2013-03-31 06:10:47 -0700 |
commit | e1b6574ce72db4fd398fb72f9e21ec766b7897eb (patch) | |
tree | 32e308e41213e6ac1a8c743d022eb7398a91b245 /lib/base.php | |
parent | b9213cf451cf694ba3b2e7a89f3ff4377198e4e7 (diff) | |
parent | c16860e648860b37b5a1b56c3f2cfb663eff61cf (diff) | |
download | nextcloud-server-5.0.1.tar.gz nextcloud-server-5.0.1.zip |
Merge pull request #2625 from owncloud/fix_namespace_in_autoloader_stable5v5.0.1
Fix namespace in autoloader stable5
Diffstat (limited to 'lib/base.php')
-rw-r--r-- | lib/base.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/base.php b/lib/base.php index 0d33dbb163e..76ad0654ed0 100644 --- a/lib/base.php +++ b/lib/base.php @@ -78,6 +78,8 @@ class OC { * SPL autoload */ public static function autoload($className) { + $className = trim($className, '\\'); + if (array_key_exists($className, OC::$CLASSPATH)) { $path = OC::$CLASSPATH[$className]; /** @TODO: Remove this when necessary |