summaryrefslogtreecommitdiffstats
path: root/lib/files
diff options
context:
space:
mode:
authorThomas Mueller <thomas.mueller@tmit.eu>2013-07-29 18:24:05 +0200
committerThomas Mueller <thomas.mueller@tmit.eu>2013-07-29 18:24:05 +0200
commite2d3225e5aff343bf62b6dbb62eb3526e525cb6b (patch)
tree7485ee0028f5cd5c3b39decfe4f23d6aa661d83d /lib/files
parenta3ff77156789a4eaf0e205aa93b168d399e011ac (diff)
downloadnextcloud-server-e2d3225e5aff343bf62b6dbb62eb3526e525cb6b.tar.gz
nextcloud-server-e2d3225e5aff343bf62b6dbb62eb3526e525cb6b.zip
implement a platform independent version of basename
Diffstat (limited to 'lib/files')
-rw-r--r--lib/files/cache/cache.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/files/cache/cache.php b/lib/files/cache/cache.php
index 3818fdbd840..5b8dc46b771 100644
--- a/lib/files/cache/cache.php
+++ b/lib/files/cache/cache.php
@@ -200,7 +200,7 @@ class Cache {
$data['path'] = $file;
$data['parent'] = $this->getParentId($file);
- $data['name'] = basename($file);
+ $data['name'] = \OC_Util::basename($file);
$data['encrypted'] = isset($data['encrypted']) ? ((int)$data['encrypted']) : 0;
list($queryParts, $params) = $this->buildParts($data);