diff options
author | Vincent Petry <pvince81@owncloud.com> | 2014-02-04 19:58:49 +0100 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2014-02-06 20:53:15 +0100 |
commit | 788c8540aa6aac50795c37b088eeaa561d44b86c (patch) | |
tree | e20e28f38477c4bf2d6412ee8a77f3eb806b5bff /lib/private/files/storage/local.php | |
parent | be47e156a5afee8a20f60d278aab45bb84c282c2 (diff) | |
download | nextcloud-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/storage/local.php')
-rw-r--r-- | lib/private/files/storage/local.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/private/files/storage/local.php b/lib/private/files/storage/local.php index db3c6bfca3a..fa0788f2377 100644 --- a/lib/private/files/storage/local.php +++ b/lib/private/files/storage/local.php @@ -298,5 +298,12 @@ if (\OC_Util::runningOnWindows()) { public function hasUpdated($path, $time) { return $this->filemtime($path) > $time; } + + /** + * {@inheritdoc} + */ + public function isLocal() { + return true; + } } } |