don't use regular expresions for a simple string replace
This commit is contained in:
parent
697061fa9f
commit
46422e6dbe
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue