1
0
Fork 0
mirror of https://github.com/Yetangitu/ampache synced 2025-10-03 09:49:30 +02:00

Default tag cloud browsing by Artist

This commit is contained in:
Afterster 2015-10-06 00:12:11 +02:00
parent 7fc69cb05f
commit 289bc3dfb0
2 changed files with 3 additions and 3 deletions

View file

@ -83,7 +83,7 @@ switch ($_REQUEST['action']) {
//FIXME: This whole thing is ugly, even though it works.
$browse->set_sort('count','ASC');
// This one's a doozy
$browse_type = isset($_REQUEST['type']) ? $_REQUEST['type'] : 'song';
$browse_type = isset($_REQUEST['type']) ? $_REQUEST['type'] : 'artist';
$browse->set_simple_browse(false);
$browse->save_objects(Tag::get_tags($browse_type, 0, 'name')); // Should add a pager?
$object_ids = $browse->get_saved();

View file

@ -21,9 +21,9 @@
*/
$tag_types = array(
'song' => T_('Song'),
'album' => T_('Album'),
'artist' => T_('Artist'),
'album' => T_('Album'),
'song' => T_('Song'),
'video' => T_('Video'),
);
?>