From cef230c141897f587dd732860cca6568fd6edc2c Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Mon, 27 Feb 2012 12:04:04 +0100 Subject: extend filestorage common and provide test implementation --- lib/filesystemview.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/filesystemview.php') diff --git a/lib/filesystemview.php b/lib/filesystemview.php index 0c530677f54..9f0a88f8ab0 100644 --- a/lib/filesystemview.php +++ b/lib/filesystemview.php @@ -329,7 +329,7 @@ class OC_FilesystemView { * @return mixed */ private function basicOperation($operation,$path,$hooks=array(),$extraParam=null){ - if(OC_FileProxy::runPreProxies($operation,$path, $extraParam) and OC_Filesystem::isValidPath($path) and $storage=$this->getStorage($path)){ + if(OC_FileProxy::runPreProxies($operation,$path, $extraParam) and OC_Filesystem::isValidPath($path)){ $interalPath=$this->getInternalPath($path); $run=true; if(OC_Filesystem::$loaded and $this->fakeRoot==OC_Filesystem::getRoot()){ @@ -341,7 +341,7 @@ class OC_FilesystemView { } } } - if($run){ + if($run and $storage=$this->getStorage($path)){ if(!is_null($extraParam)){ $result=$storage->$operation($interalPath,$extraParam); }else{ -- cgit v1.2.3