From f28f528431fceca7daa3b27edcd1f564ad152086 Mon Sep 17 00:00:00 2001 From: Bjoern Schiessle Date: Sat, 17 Aug 2013 13:49:42 +0200 Subject: [PATCH] switched to dirname() --- apps/files_versions/lib/versions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/files_versions/lib/versions.php b/apps/files_versions/lib/versions.php index d91654fe24..f8537f10c4 100644 --- a/apps/files_versions/lib/versions.php +++ b/apps/files_versions/lib/versions.php @@ -569,7 +569,7 @@ class Storage { * @param \OC\Files\View $view view on data/user/ */ private static function createMissingDirectories($filename, $view) { - $dirname = \OC_Filesystem::normalizePath(pathinfo($filename, PATHINFO_DIRNAME)); + $dirname = \OC_Filesystem::normalizePath(dirname($filename)); $dirParts = explode('/', $dirname); $dir = "/files_versions"; foreach ($dirParts as $part) {