aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/files.php
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2014-02-11 14:49:39 +0100
committerVincent Petry <pvince81@owncloud.com>2014-02-11 14:49:39 +0100
commitc442a03d3a1a7c15d3954e5fd8c48898ee768951 (patch)
treeeebad7c54b291c7e5fc9a102839f3ef162513a31 /lib/private/files.php
parent72f134cfce05eb089a6d8271e73d6eb95cbe94a4 (diff)
parent788c8540aa6aac50795c37b088eeaa561d44b86c (diff)
downloadnextcloud-server-c442a03d3a1a7c15d3954e5fd8c48898ee768951.tar.gz
nextcloud-server-c442a03d3a1a7c15d3954e5fd8c48898ee768951.zip
Merge pull request #7075 from owncloud/quota-storagexsendfile
Added isLocal() method to storage, used for xsendfile
Diffstat (limited to 'lib/private/files.php')
-rw-r--r--lib/private/files.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/files.php b/lib/private/files.php
index 8ce632013cf..24fca4a5df3 100644
--- a/lib/private/files.php
+++ b/lib/private/files.php
@@ -131,7 +131,7 @@ class OC_Files {
}
if ($xsendfile) {
list($storage) = \OC\Files\Filesystem::resolvePath(\OC\Files\Filesystem::getView()->getAbsolutePath($filename));
- if ($storage instanceof \OC\Files\Storage\Local) {
+ if ($storage->isLocal()) {
self::addSendfileHeader(\OC\Files\Filesystem::getLocalFile($filename));
}
}