CC-2717: Media Monitor forgets about watched directories after being restarted

This commit is contained in:
martin 2011-08-22 20:36:16 -04:00
parent e5579228bd
commit d7830785df
2 changed files with 13 additions and 0 deletions

View file

@ -426,6 +426,13 @@ class ApiController extends Zend_Controller_Action
}
$this->view->stor = MusicDir::getStorDir()->getDirectory();
$watchedDirs = MusicDir::getWatchedDirs();
$watchedDirsPath = array();
foreach($watchedDirs as $wd){
$watchedDirsPath[] = $wd->getDirectory();
}
$this->view->watched_dirs = $watchedDirsPath;
}
public function reloadMetadataAction() {