don't use regular expresions for a simple string replace

remotes/origin/stable45
Robin Appelman 13 years ago
parent 697061fa9f
commit 46422e6dbe
  1. 2
      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) {

Loading…
Cancel
Save