[Pkg-owncloud-commits] [owncloud] 06/67: extract the right parent directory from the path add parent directory to the file cache if it does not exist yet.
David Prévot
taffit at alioth.debian.org
Fri Nov 8 23:10:30 UTC 2013
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to annotated tag v4.5.1
in repository owncloud.
commit e23b06ec8c0c648b4fed119ecdd50a676b344434
Author: Björn Schießle <schiessle at owncloud.com>
Date: Tue Oct 9 16:21:46 2012 +0200
extract the right parent directory from the path
add parent directory to the file cache if it does not exist yet.
---
lib/filecache.php | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/filecache.php b/lib/filecache.php
index d68525d..8fcb6fd 100644
--- a/lib/filecache.php
+++ b/lib/filecache.php
@@ -79,7 +79,7 @@ class OC_FileCache{
// add parent directory to the file cache if it does not exist yet.
if ($parent == -1 && $fullpath != $root) {
- $parentDir = substr(dirname($path), 0, strrpos(dirname($path), DIRECTORY_SEPARATOR));
+ $parentDir = dirname($path);
self::scanFile($parentDir);
$parent = self::getParentId($fullpath);
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git
More information about the Pkg-owncloud-commits
mailing list