summaryrefslogtreecommitdiffstats
path: root/artists.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-07-29 03:20:00 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-07-29 03:20:00 +0000
commitdb47bcb6c018fecae71b8b7120c70d7ef9c7bcf6 (patch)
treed017e40d77c0d580aa6091dceabec7fd919a83c2 /artists.php
parent20c3dc0fd1993b36a8ff3467fbc8c4f30c59588d (diff)
downloadampache-db47bcb6c018fecae71b8b7120c70d7ef9c7bcf6.tar.gz
ampache-db47bcb6c018fecae71b8b7120c70d7ef9c7bcf6.tar.bz2
ampache-db47bcb6c018fecae71b8b7120c70d7ef9c7bcf6.zip
fixed play all artist, play all artist random, and account updating from user preferences
Diffstat (limited to 'artists.php')
-rw-r--r--artists.php23
1 files changed, 6 insertions, 17 deletions
diff --git a/artists.php b/artists.php
index aed17c45..1f4e1788 100644
--- a/artists.php
+++ b/artists.php
@@ -25,16 +25,6 @@ require_once 'lib/init.php';
show_header();
/**
- * Doing Switch
- */
-switch($_REQUEST['action']) {
-
-
-
-} // end display switch
-
-
-/**
* Display Switch
*/
switch($_REQUEST['action']) {
@@ -46,13 +36,12 @@ switch($_REQUEST['action']) {
break;
case 'show_all_songs':
$artist = new Artist($_REQUEST['artist']);
- $artist->format_artist();
- $song_ids = $artist->get_song_ids();
- $artist_id = $artist->id;
- require(conf('prefix') . '/templates/show_artist_box.inc.php');
- show_songs($song_ids,'');
+ $artist->format();
+ require_once Config::get('prefix') . '/templates/show_artist_box.inc.php';
+ $song_ids = $artist->get_songs();
+ Browse::set_type('song');
+ Browse::show_objects($song_ids);
break;
-
case 'update_from_tags':
$artist = new Artist($_REQUEST['artist']);
@@ -61,7 +50,7 @@ switch($_REQUEST['action']) {
Catalog::update_single_item('artist',$_REQUEST['artist']);
- echo "<br /><b>" . _("Update From Tags Complete") . "</b> &nbsp;&nbsp;";
+ echo "<br /><strong>" . _('Update From Tags Complete') . "</strong> &nbsp;&nbsp;";
echo "<a href=\"" . Config::get('web_path') . "/artists.php?action=show&amp;artist=" . $_REQUEST['artist'] . "\">[" . _('Return') . "]</a>";
show_box_bottom();
break;