Merge branch 'cc-4274' into devel
This commit is contained in:
commit
c67ad44699
4 changed files with 32 additions and 6 deletions
|
@ -689,7 +689,8 @@ class ApiController extends Zend_Controller_Action
|
|||
$request = $this->getRequest();
|
||||
$dir_id = $request->getParam('dir_id');
|
||||
|
||||
$this->view->files = Application_Model_StoredFile::listAllFiles($dir_id);
|
||||
$this->view->files =
|
||||
Application_Model_StoredFile::listAllFiles($dir_id,$all=true);
|
||||
}
|
||||
|
||||
public function listAllWatchedDirsAction()
|
||||
|
@ -862,7 +863,8 @@ class ApiController extends Zend_Controller_Action
|
|||
|
||||
$watchDir = Application_Model_MusicDir::getDirByPath($rd);
|
||||
// get all the files that is under $dirPath
|
||||
$files = Application_Model_StoredFile::listAllFiles($dir->getId(), true);
|
||||
$files = Application_Model_StoredFile::listAllFiles(
|
||||
$dir->getId(),$all=false, true);
|
||||
foreach ($files as $f) {
|
||||
// if the file is from this mount
|
||||
if (substr($f->getFilePath(), 0, strlen($rd)) === $rd) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue