don't use regular expresions for a simple string replace

This commit is contained in:
Robin Appelman 2012-09-08 23:40:23 +02:00
parent 697061fa9f
commit 46422e6dbe
1 changed files with 1 additions and 1 deletions

View File

@ -75,7 +75,7 @@ class OC{
/** @TODO: Remove this when necessary /** @TODO: Remove this when necessary
Remove "apps/" from inclusion path for smooth migration to mutli app dir 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; require_once $path;
} }
elseif(strpos($className, 'OC_')===0) { elseif(strpos($className, 'OC_')===0) {