summaryrefslogtreecommitdiffstats
path: root/lib/class/song.class.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2006-11-30 08:48:08 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2006-11-30 08:48:08 +0000
commit1938861afbcd29110341780e099cf9effe4c2b9a (patch)
tree2a08f15eaa40d6d6aff99f9273aa856a3b83cdb6 /lib/class/song.class.php
parent986c0f9ed8c7f58e7dfa078590dcc10debc47948 (diff)
downloadampache-1938861afbcd29110341780e099cf9effe4c2b9a.tar.gz
ampache-1938861afbcd29110341780e099cf9effe4c2b9a.tar.bz2
ampache-1938861afbcd29110341780e099cf9effe4c2b9a.zip
prep for tags/lyrics cleanup and recently playing tweaks
Diffstat (limited to 'lib/class/song.class.php')
-rw-r--r--lib/class/song.class.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/class/song.class.php b/lib/class/song.class.php
index 69f86db5..8e3581a5 100644
--- a/lib/class/song.class.php
+++ b/lib/class/song.class.php
@@ -607,8 +607,10 @@ class Song {
// Format the title
$this->f_title = truncate_with_ellipse($this->title,conf('ellipse_threshold_title'));
- // Create A link inclduing the title
+ // Create Links for the different objects
$this->f_link = "<a href=\"" . conf('web_path') . "/song.php?action=single_song&amp;song_id=" . $this->id . "\">$this->f_title</a>";
+ $this->f_album_link = "<a href=\"" . conf('web_path') . "/album.php?action=show&amp;album_id=" . $this->album . "\">$this->f_album</a>";
+ $this->f_artist_link = "<a href=\"" . conf('web_path') . "/artist.php?action=show&amp;artist_id=" . $this->artist . "\">$this->f_artist</a>";
// Format the Bitrate
$this->f_bitrate = intval($this->bitrate/1000) . "-" . strtoupper($this->mode);