mirror of
https://github.com/Yetangitu/ampache
synced 2025-10-03 09:49:30 +02:00
some more minor tweaks to democratic playlist, fixed now playing on localplay playlist
This commit is contained in:
parent
e24192c441
commit
2a0c72b30c
7 changed files with 45 additions and 14 deletions
|
@ -60,8 +60,11 @@ switch ($_REQUEST['action']) {
|
|||
$democratic->delete_votes($_REQUEST['row_id']);
|
||||
|
||||
ob_start();
|
||||
$objects = $democratic->get_items();
|
||||
require_once Config::get('prefix') . '/templates/show_democratic_playlist.inc.php';
|
||||
$object_ids = $democratic->get_items();
|
||||
Browse::set_type('democratic');
|
||||
Browse::reset();
|
||||
Browse::set_static_content(1);
|
||||
Browse::show_objects($object_ids);
|
||||
$results['democratic_playlist'] = ob_get_contents();
|
||||
ob_end_clean();
|
||||
|
||||
|
@ -74,6 +77,26 @@ switch ($_REQUEST['action']) {
|
|||
$_SESSION['iframe']['target'] = Config::get('web_path') . '/stream.php?action=democratic&democratic_id=' . scrub_out($_REQUEST['democratic_id']);
|
||||
$results['rfc3514'] = '<script type="text/javascript">reload_util("'.$_SESSION['iframe']['target'].'")</script>';
|
||||
break;
|
||||
case 'clear_playlist':
|
||||
|
||||
if (!Access::check('interface','100')) {
|
||||
exit;
|
||||
}
|
||||
|
||||
$democratic = new Democratic($_REQUEST['democratic_id']);
|
||||
$democratic->set_parent();
|
||||
$democratic->clear();
|
||||
|
||||
ob_start();
|
||||
$object_ids = $democratic->get_items();
|
||||
Browse::set_type('democratic');
|
||||
Browse::reset();
|
||||
Browse::set_static_content(1);
|
||||
Browse::show_objects($object_ids);
|
||||
$results['browse_content'] = ob_get_contents();
|
||||
ob_end_clean();
|
||||
|
||||
break;
|
||||
default:
|
||||
$results['rfc3514'] = '0x1';
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue