From 788c8540aa6aac50795c37b088eeaa561d44b86c Mon Sep 17 00:00:00 2001 From: Vincent Petry Date: Tue, 4 Feb 2014 19:58:49 +0100 Subject: 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. --- lib/private/files/storage/local.php | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'lib/private/files/storage/local.php') 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; + } } } -- cgit v1.2.3