diff options
author | Tom Needham <needham.thomas@gmail.com> | 2012-10-28 11:16:04 +0000 |
---|---|---|
committer | Tom Needham <needham.thomas@gmail.com> | 2012-10-28 11:16:04 +0000 |
commit | bcdf3a23db6867332232f8c1b69ba3fa394e191a (patch) | |
tree | 20be51b4a2e5f1c7f8bc3a50ca3fb9571e972af3 /lib/filestorage/common.php | |
parent | b07944798848bc5196dc75e8d8caea5ca71b0f15 (diff) | |
parent | 22dcd3b6a691c7a245e4d1de30f09bb17efdfceb (diff) | |
download | nextcloud-server-bcdf3a23db6867332232f8c1b69ba3fa394e191a.tar.gz nextcloud-server-bcdf3a23db6867332232f8c1b69ba3fa394e191a.zip |
Merge master into ocs_api
Diffstat (limited to 'lib/filestorage/common.php')
-rw-r--r-- | lib/filestorage/common.php | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/lib/filestorage/common.php b/lib/filestorage/common.php index 351714437c5..f24a5704913 100644 --- a/lib/filestorage/common.php +++ b/lib/filestorage/common.php @@ -260,7 +260,7 @@ abstract class OC_Filestorage_Common extends OC_Filestorage { if($dh) { while($item=readdir($dh)) { if ($item == '.' || $item == '..') continue; - if(strstr(strtolower($item),strtolower($query))!==false) { + if(strstr(strtolower($item), strtolower($query))!==false) { $files[]=$dir.'/'.$item; } if($this->is_dir($dir.'/'.$item)) { @@ -279,4 +279,13 @@ abstract class OC_Filestorage_Common extends OC_Filestorage { public function hasUpdated($path,$time) { return $this->filemtime($path)>$time; } + + /** + * get the owner of a path + * @param $path The path to get the owner + * @return string uid or false + */ + public function getOwner($path) { + return OC_User::getUser(); + } } |