mirror of
https://github.com/Yetangitu/ampache
synced 2025-10-03 09:49:30 +02:00
fixed sending to localplay for democratic playlist
This commit is contained in:
parent
afb0aafbfe
commit
ca7851d0e0
4 changed files with 12 additions and 2 deletions
|
@ -4,6 +4,8 @@
|
|||
|
||||
--------------------------------------------------------------------------
|
||||
v.3.4-Beta2
|
||||
- Fixed problem where democratic play wouldn't send to localplay
|
||||
and would just display a blank screen
|
||||
- Added Multi-Character Filter on browse pages
|
||||
- Fixed Flag Management Interface
|
||||
- Added Export Catalog to CSV
|
||||
|
|
|
@ -63,6 +63,14 @@ switch ($_REQUEST['action']) {
|
|||
ob_end_clean();
|
||||
|
||||
break;
|
||||
case 'send_playlist':
|
||||
if (!Access::check('interface','75')) {
|
||||
exit;
|
||||
}
|
||||
|
||||
$_SESSION['iframe']['target'] = Config::get('web_path') . '/stream.php?action=democratic';
|
||||
$results['rfc3514'] = '<script type="text/javascript">reload_util("'.$_SESSION['iframe']['target'].'")</script>';
|
||||
break;
|
||||
default:
|
||||
$results['rfc3514'] = '0x1';
|
||||
break;
|
||||
|
|
|
@ -146,7 +146,7 @@ switch ($_REQUEST['action']) {
|
|||
case 'democratic':
|
||||
$democratic = Democratic::get_current_playlist();
|
||||
$urls[] = $democratic->get_url();
|
||||
$song_ids = array();
|
||||
$song_ids = array('0');
|
||||
break;
|
||||
case 'download':
|
||||
$song_ids[] = $_REQUEST['song_id'];
|
||||
|
|
|
@ -44,7 +44,7 @@ show_box_top(_('Manage Democratic Playlists')); ?>
|
|||
<td><?php echo $playlist->f_link; ?></td>
|
||||
<td><?php echo $democratic->count_items(); ?></td>
|
||||
<td>
|
||||
<a href="<?php echo Config::get('web_path'); ?>/stream.php?action=democratic"><?php echo get_user_icon('all'); ?></a>
|
||||
<?php echo Ajax::button('?page=democratic&action=send_playlist','all',_('Play'),'play_democratic'); ?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php } if (!count($playlists)) { ?>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue