]> source.dussan.org Git - nextcloud-server.git/commitdiff
switched to dirname()
authorBjoern Schiessle <schiessle@owncloud.com>
Sat, 17 Aug 2013 11:49:42 +0000 (13:49 +0200)
committerBjoern Schiessle <schiessle@owncloud.com>
Sat, 17 Aug 2013 15:36:20 +0000 (17:36 +0200)
apps/files_versions/lib/versions.php

index 35944e97f198eb2418d39a7de98d2c47ae03a019..9efbe88c9c5fda64191027bd6302373dd37586ba 100644 (file)
@@ -548,7 +548,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) {