1
0
Fork 0
mirror of https://github.com/Yetangitu/ampache synced 2025-10-03 01:39:28 +02:00

fixed multi-genre random play

This commit is contained in:
Karl 'vollmerk' Vollmer 2007-11-05 02:52:57 +00:00
parent d3840c7de0
commit ab0e89b8dd
5 changed files with 30 additions and 25 deletions

View file

@ -25,8 +25,17 @@ require_once 'lib/init.php';
show_header();
switch ($_REQUEST['action']) {
default:
case 'get_advanced':
$object_ids = Random::advanced($_POST);
// We need to add them to the active playlist
foreach ($object_ids as $object_id) {
$GLOBALS['user']->playlist->add_object($object_id,'song');
}
// We need to refresh the playlist
case 'advanced':
default:
require_once Config::get('prefix') . '/templates/show_random.inc.php';
break;
} // end switch