summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-05-14 20:43:20 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-05-14 20:43:20 +0000
commitd75902980878d7a8f84cefe2b4a2ee4b46ebfa50 (patch)
treeb15d89fbc37ed094bdb99823dd1d5cb3100182f0 /lib
parentf5723a113e81a93b82f49a377a5085db99b94461 (diff)
downloadampache-d75902980878d7a8f84cefe2b4a2ee4b46ebfa50.tar.gz
ampache-d75902980878d7a8f84cefe2b4a2ee4b46ebfa50.tar.bz2
ampache-d75902980878d7a8f84cefe2b4a2ee4b46ebfa50.zip
added some links to the sidebar preferences adn then also added in some missing fields to the show songs, only missing the ratings on show songs now...
Diffstat (limited to 'lib')
-rw-r--r--lib/class/song.class.php10
1 files changed, 4 insertions, 6 deletions
diff --git a/lib/class/song.class.php b/lib/class/song.class.php
index ca1b5bbf..ddfe4275 100644
--- a/lib/class/song.class.php
+++ b/lib/class/song.class.php
@@ -665,21 +665,19 @@ class Song {
$this->f_bitrate = intval($this->bitrate/1000) . "-" . strtoupper($this->mode);
// Format Genre
- $this->f_genre = $this->get_genre_name();
+ $this->f_genre_link = $this->get_genre_name();
// Format the Time
$min = floor($this->time/60);
$sec = sprintf("%02d", ($this->time%60) );
$this->f_time = $min . ":" . $sec;
+ // Format the track (there isn't really anything to do here)
+ $this->f_track = $this->track;
+
// Format the size
$this->f_size = sprintf("%.2f",($this->size/1048576));
- // Set style
- if (preg_match("/id3/", $this->flagtype)) { $this->f_style = "style=\"color: #33c;\""; }
- elseif (preg_match("/(mp3|del|sort|ren)/", $this->flagtype)) { $this->f_style = "style=\"color: #C00;\""; }
- if (!$this->enabled) { $this->f_style = "style=\"text-decoration: line-through;\""; }
-
return true;
} // format_song