diff --git a/lib/base.php b/lib/base.php index 1c6cc70b0e..679acdb6e5 100644 --- a/lib/base.php +++ b/lib/base.php @@ -75,7 +75,7 @@ class OC{ /** @TODO: Remove this when necessary Remove "apps/" from inclusion path for smooth migration to mutli app dir */ - $path = preg_replace('/apps\//', '', OC::$CLASSPATH[$className]); + $path = str_replace('apps/', '', OC::$CLASSPATH[$className]); require_once $path; } elseif(strpos($className, 'OC_')===0) {