CC-3675: Playlist -> the files from Disconnected Mediafolder can still
be previewed (played) - done
This commit is contained in:
parent
a41f100545
commit
3c4d01aa93
4 changed files with 23 additions and 10 deletions
|
@ -98,7 +98,7 @@ class AudiopreviewController extends Zend_Controller_Action
|
|||
$pl = new Application_Model_Playlist($playlistID);
|
||||
$result = Array();
|
||||
|
||||
foreach ( $pl->getContents() as $track ){
|
||||
foreach ( $pl->getContents(true) as $track ){
|
||||
|
||||
$elementMap = array( 'element_title' => isset($track['CcFiles']['track_title'])?$track['CcFiles']['track_title']:"",
|
||||
'element_artist' => isset($track['CcFiles']['artist_name'])?$track['CcFiles']['artist_name']:"",
|
||||
|
@ -115,7 +115,7 @@ class AudiopreviewController extends Zend_Controller_Action
|
|||
}
|
||||
$result[] = $elementMap;
|
||||
}
|
||||
|
||||
|
||||
$this->_helper->json($result);
|
||||
}
|
||||
|
||||
|
|
|
@ -373,7 +373,7 @@ class ScheduleController extends Zend_Controller_Action
|
|||
$this->view->switch_status = $switch_status;
|
||||
|
||||
$this->view->entries = $range;
|
||||
$this->view->show_name = $show[0]["name"];
|
||||
$this->view->show_name = isset($show[0])?$show[0]["name"]:"";
|
||||
}
|
||||
|
||||
public function removeGroupAction()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue