summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2012-09-08 23:40:23 +0200
committerRobin Appelman <icewind@owncloud.com>2012-09-08 23:40:23 +0200
commit46422e6dbeac4993a4750f1dfec16f8e22a1d876 (patch)
treedaef98dd4cbd48a368621c1eac3cd200ab1fb623 /lib
parent697061fa9f6279b8d8f24d984543aeccb6214ba2 (diff)
downloadnextcloud-server-46422e6dbeac4993a4750f1dfec16f8e22a1d876.tar.gz
nextcloud-server-46422e6dbeac4993a4750f1dfec16f8e22a1d876.zip
don't use regular expresions for a simple string replace
Diffstat (limited to 'lib')
-rw-r--r--lib/base.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/base.php b/lib/base.php
index 1c6cc70b0e8..679acdb6e5d 100644
--- a/lib/base.php
+++ b/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) {