Remove fileid parameter for getFolderContent

This commit is contained in:
Robin Appelman 2014-02-21 15:36:24 +01:00
parent dd98e6333f
commit 3487a95eab
1 changed files with 2 additions and 5 deletions

View File

@ -162,13 +162,10 @@ class Cache {
* get the metadata of all files stored in $folder * get the metadata of all files stored in $folder
* *
* @param string $folder * @param string $folder
* @param int $fileId (optional) the file id of the folder
* @return array * @return array
*/ */
public function getFolderContents($folder, $fileId = null) { public function getFolderContents($folder) {
if (is_null($fileId)) { $fileId = $this->getId($folder);
$fileId = $this->getId($folder);
}
return $this->getFolderContentsById($fileId); return $this->getFolderContentsById($fileId);
} }