diff options
Diffstat (limited to 'random.php')
-rw-r--r-- | random.php | 7 |
1 files changed, 2 insertions, 5 deletions
@@ -37,18 +37,15 @@ show_header(); switch ($_REQUEST['action']) { case 'get_advanced': - $object_ids = Random::advanced($_POST); + $object_ids = Random::advanced($_REQUEST['type'], $_POST); // We need to add them to the active playlist foreach ($object_ids as $object_id) { - $GLOBALS['user']->playlist->add_object($object_id,'song'); + $GLOBALS['user']->playlist->add_object($object_id, 'song'); } - case 'advanced': default: require_once Config::get('prefix') . '/templates/show_random.inc.php'; -/* require_once Config::get('prefix') . '/templates/show_random_rules.inc.php';*/ - break; } // end switch |