[Pkg-owncloud-commits] [php-sabredav] 61/220: Relative paths won't work on Windows
David Prévot
taffit at moszumanska.debian.org
Thu May 12 01:21:08 UTC 2016
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository php-sabredav.
commit 02fc7154cfe7a5f2450d91f9741d3d0411504e02
Author: Tony Bogdanov <tonybogdanov at gmail.com>
Date: Sun Feb 7 10:56:01 2016 +0200
Relative paths won't work on Windows
Seems that disk_total_space and disk_free_space cannot work with relative paths on Windows (WAMP + PHP 5.6)
---
lib/DAV/FS/Directory.php | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/lib/DAV/FS/Directory.php b/lib/DAV/FS/Directory.php
index 963e555..4d7cb26 100644
--- a/lib/DAV/FS/Directory.php
+++ b/lib/DAV/FS/Directory.php
@@ -140,10 +140,10 @@ class Directory extends Node implements DAV\ICollection, DAV\IQuota {
* @return array
*/
function getQuotaInfo() {
-
+ $absolute = getcwd() . '/' . $this->path;
return [
- disk_total_space($this->path) - disk_free_space($this->path),
- disk_free_space($this->path)
+ disk_total_space($absolute) - disk_free_space($absolute),
+ disk_free_space($absolute)
];
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-php/php-sabredav.git
More information about the Pkg-owncloud-commits
mailing list