summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-11-13 04:31:50 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-11-13 04:31:50 +0000
commitab6ecea9dbc4b53a7442db6f3695d68f9ba36f99 (patch)
tree49ad7fdd12fc4b862d0debb709d9bda445202502 /lib
parent49cea7da0ca3052de33dc69e643c2364c36b22ac (diff)
downloadampache-ab6ecea9dbc4b53a7442db6f3695d68f9ba36f99.tar.gz
ampache-ab6ecea9dbc4b53a7442db6f3695d68f9ba36f99.tar.bz2
ampache-ab6ecea9dbc4b53a7442db6f3695d68f9ba36f99.zip
added single song view
Diffstat (limited to 'lib')
-rw-r--r--lib/class/song.class.php19
1 files changed, 9 insertions, 10 deletions
diff --git a/lib/class/song.class.php b/lib/class/song.class.php
index d39aef1a..e912e511 100644
--- a/lib/class/song.class.php
+++ b/lib/class/song.class.php
@@ -677,7 +677,7 @@ class Song {
$this->f_title = truncate_with_ellipsis($this->title,Config::get('ellipse_threshold_title'));
// Create Links for the different objects
- $this->f_link = "<a href=\"" . Config::get('web_path') . "/stream.php?action=single_song&amp;song_id=" . $this->id . "\"> " . scrub_out($this->f_title) . "</a>";
+ $this->f_link = "<a href=\"" . Config::get('web_path') . "/song.php?action=show_song&amp;song_id=" . $this->id . "\"> " . scrub_out($this->f_title) . "</a>";
$this->f_album_link = "<a href=\"" . Config::get('web_path') . "/albums.php?action=show&amp;album=" . $this->album . "\"> " . scrub_out($this->f_album) . "</a>";
$this->f_artist_link = "<a href=\"" . Config::get('web_path') . "/artists.php?action=show&amp;artist=" . $this->artist . "\"> " . scrub_out($this->f_artist) . "</a>";
@@ -688,7 +688,6 @@ class Song {
$this->f_genre = $this->get_genre_name();
$this->f_genre_link = "<a href=\"" . Config::get('web_path') . "/genre.php?action=show_genre&amp;genre_id=" . $this->genre . "\">$this->f_genre</a>";
-
// Format the Time
$min = floor($this->time/60);
$sec = sprintf("%02d", ($this->time%60) );
@@ -702,14 +701,14 @@ class Song {
return true;
- } // format_song
+ } // format
- /*!
- * @function get_rel_path
- * @discussion returns the path of the song file stripped of the catalog path
- * used for mpd playback
- */
- function get_rel_path($file_path=0,$catalog_id=0) {
+ /**
+ * @function get_rel_path
+ * @discussion returns the path of the song file stripped of the catalog path
+ * used for mpd playback
+ */
+ function get_rel_path($file_path=0,$catalog_id=0) {
if (!$file_path) {
$info = $this->_get_info();
@@ -724,7 +723,7 @@ class Song {
$catalog_path = rtrim($catalog_path, "/");
return( str_replace( $catalog_path . "/", "", $file_path ) );
- } // get_rel_path
+ } // get_rel_path
/*!