Skip to content
Snippets Groups Projects
Commit 46422e6d authored by Robin Appelman's avatar Robin Appelman
Browse files

don't use regular expresions for a simple string replace

parent 697061fa
Branches
No related tags found
No related merge requests found
...@@ -75,7 +75,7 @@ class OC{ ...@@ -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) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment