Merge branch 'devel' of dev.sourcefabric.org:airtime into devel
This commit is contained in:
commit
8b5f94fa9f
10 changed files with 87 additions and 21 deletions
|
@ -686,7 +686,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()
|
||||
|
@ -859,7 +860,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) {
|
||||
|
|
|
@ -13,6 +13,7 @@ class UsersettingsController extends Zend_Controller_Action
|
|||
->addActionContext('get-timeline-datatable', 'json')
|
||||
->addActionContext('set-timeline-datatable', 'json')
|
||||
->addActionContext('remindme', 'json')
|
||||
->addActionContext('remindme-never', 'json')
|
||||
->addActionContext('donotshowregistrationpopup', 'json')
|
||||
->initContext();
|
||||
}
|
||||
|
@ -88,6 +89,13 @@ class UsersettingsController extends Zend_Controller_Action
|
|||
Zend_Session::namespaceUnset('referrer');
|
||||
Application_Model_Preference::SetRemindMeDate();
|
||||
}
|
||||
|
||||
public function remindmeNeverAction()
|
||||
{
|
||||
Zend_Session::namespaceUnset('referrer');
|
||||
//pass in true to indicate 'Remind me never' was clicked
|
||||
Application_Model_Preference::SetRemindMeDate(true);
|
||||
}
|
||||
|
||||
public function donotshowregistrationpopupAction()
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue