diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-02-11 06:13:21 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-02-11 06:13:21 +0000 |
commit | 949d7bb12fe9de9ccf3d2958bccde4354ab04d9b (patch) | |
tree | 7228810d63f0823b1557b4b33ecd29f1bf194328 /lib/class/artist.class.php | |
parent | 66de7ffff1c95e5bb415f1c3b56966f2d9916864 (diff) | |
download | ampache-949d7bb12fe9de9ccf3d2958bccde4354ab04d9b.tar.gz ampache-949d7bb12fe9de9ccf3d2958bccde4354ab04d9b.tar.bz2 ampache-949d7bb12fe9de9ccf3d2958bccde4354ab04d9b.zip |
* Fixed xmlrpc, hopefully
* Added min count filter to browse by artist
* Fixed ratings to show yours, not average if rated
* other misc fixes
Diffstat (limited to 'lib/class/artist.class.php')
-rw-r--r-- | lib/class/artist.class.php | 29 |
1 files changed, 21 insertions, 8 deletions
diff --git a/lib/class/artist.class.php b/lib/class/artist.class.php index fbbca4d1..c89eb271 100644 --- a/lib/class/artist.class.php +++ b/lib/class/artist.class.php @@ -176,14 +176,14 @@ class Artist { } // get_count - /*! - @function format_artist - @discussion this function takes an array of artist - information and reformats the relevent values - so they can be displayed in a table for example - it changes the title into a full link. - */ - function format_artist() { + /** + * format + * this function takes an array of artist + * information and reformats the relevent values + * so they can be displayed in a table for example + * it changes the title into a full link. + */ + function format() { /* Combine prefix and name, trim then add ... if needed */ $name = scrub_out(truncate_with_ellipse(trim($this->prefix . " " . $this->name))); @@ -196,8 +196,21 @@ class Artist { $this->link = "<a href=\"" . conf('web_path') . "/artists.php?action=show&artist=" . $this->id . "\" title=\"" . $this->full_name . "\">" . $name . "</a>"; $this->name = $this->link; + // Get the counts + $this->get_count(); + return true; + } // format + + /** + * format_artist + * DEFUNCT, do not use anymore + */ + function format_artist() { + + $this->format(); + } // format_artist /*! |