1
0
Fork 0
mirror of https://github.com/Yetangitu/ampache synced 2025-10-03 17:59:21 +02:00

Removed some debug code to fix random play.

This commit is contained in:
xgizzmo 2005-12-26 20:45:20 +00:00
parent a792f82334
commit 7ea54a5c71
2 changed files with 2 additions and 8 deletions

View file

@ -98,16 +98,11 @@ elseif ( $_REQUEST['random'] ) {
if($_REQUEST['catalog'] != '-1') {
$matchlist['catalog'] = $_REQUEST['catalog'];
}
$_REQUEST['random'] = '100';
$_REQUEST['random_type'] = 'normal';
unset($matchlist['genre']);
unset($matchlist['catalog']);
/* Setup the options array */
$options = array('limit' => $_REQUEST['random'], 'random_type' => $_REQUEST['random_type']);
$song_ids = get_random_songs($options, $matchlist);
}
elseif ( $_REQUEST['artist_random'] ) {
$artist = new Artist($_REQUEST['artist_random']);
$artist->get_count();

View file

@ -112,7 +112,7 @@ $browse_items[] = array('title'=>'Genre','url'=>'browse.php?action=genre','activ
<?php if ($GLOBALS['theme']['orientation'] != 'horizontal') { ?>
<ul class="subnavside">
<li class="subnavbutton">
<form name="random" method="post" enctype="multipart/form-data" action="<?php echo conf('web_path'); ?>/song.php" style="Display:inline">
<form name="sub_random" method="post" enctype="multipart/form-data" action="<?php echo conf('web_path'); ?>/song.php" style="Display:inline">
<input type="hidden" name="action" value="m3u" />
<select name="random" style="width:110px;">
<option value="1">1</option>
@ -146,5 +146,4 @@ $browse_items[] = array('title'=>'Genre','url'=>'browse.php?action=genre','activ
<?php if (conf('use_auth')) { ?>
<ul><li><a href="<?php echo conf('web_path'); ?>/logout.php">Logout</a></li></ul>
<?php } ?>
</div>