don't use regular expresions for a simple string replace
This commit is contained in:
parent
697061fa9f
commit
46422e6dbe
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue