diff options
author | pb1dft <pb1dft@ampache> | 2006-11-25 22:58:24 +0000 |
---|---|---|
committer | pb1dft <pb1dft@ampache> | 2006-11-25 22:58:24 +0000 |
commit | 0635397ab2bd5afc6789cef56b9a9d87bd52bcfd (patch) | |
tree | 931bc00aac44b959f5ed3d6efc0a673335357dea /lib/class/artist.class.php | |
parent | 9d17e8cc950234277f156b91447696a2d40a0c21 (diff) | |
download | ampache-0635397ab2bd5afc6789cef56b9a9d87bd52bcfd.tar.gz ampache-0635397ab2bd5afc6789cef56b9a9d87bd52bcfd.tar.bz2 ampache-0635397ab2bd5afc6789cef56b9a9d87bd52bcfd.zip |
Fixed some stuff on album art added ability to sort albums on name/year in artist.php
Diffstat (limited to 'lib/class/artist.class.php')
-rw-r--r-- | lib/class/artist.class.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/class/artist.class.php b/lib/class/artist.class.php index 10843086..b43d9c90 100644 --- a/lib/class/artist.class.php +++ b/lib/class/artist.class.php @@ -78,11 +78,11 @@ class Artist { @function get_albums @discussion gets the albums for this artist */ - function get_albums() { + function get_albums($sql) { $results = array(); - $sql = "SELECT DISTINCT(album.id) FROM song,album WHERE song.album=album.id AND song.artist='$this->id' ORDER BY album.name"; +// $sql = "SELECT DISTINCT(album.id) FROM song,album WHERE song.album=album.id AND song.artist='$this->id' ORDER BY album.name"; $db_results = mysql_query($sql, dbh()); while ($r = mysql_fetch_object($db_results)) { @@ -279,12 +279,12 @@ class Artist { @function show_albums @discussion displays the show albums by artist page */ - function show_albums() { + function show_albums($sql = 0) { /* Set Vars */ $web_path = conf('web_path'); - $albums = $this->get_albums(); + $albums = $this->get_albums($sql); $this->format_artist(); $artist = $this; |