summaryrefslogtreecommitdiffstats
path: root/lib/private/files.php
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2014-02-04 19:58:49 +0100
committerVincent Petry <pvince81@owncloud.com>2014-02-06 20:53:15 +0100
commit788c8540aa6aac50795c37b088eeaa561d44b86c (patch)
treee20e28f38477c4bf2d6412ee8a77f3eb806b5bff /lib/private/files.php
parentbe47e156a5afee8a20f60d278aab45bb84c282c2 (diff)
downloadnextcloud-server-788c8540aa6aac50795c37b088eeaa561d44b86c.tar.gz
nextcloud-server-788c8540aa6aac50795c37b088eeaa561d44b86c.zip
Added isLocal() method to storage, used for xsendfile
Added isLocal() method to Storage to find out whether the storage is local or not. This method is used for the x-sendfile logic to find out whether to add the headers.
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));
}
}