diff options
Diffstat (limited to 'lib/class')
-rw-r--r-- | lib/class/album.class.php | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/lib/class/album.class.php b/lib/class/album.class.php index c351b085..cd54eccd 100644 --- a/lib/class/album.class.php +++ b/lib/class/album.class.php @@ -209,9 +209,17 @@ class Album { foreach ($data as $key=>$value) { $this->$key = $value; } /* Truncate the string if it's to long */ - $this->f_name = truncate_with_ellipsis($this->name,Config::get('ellipsis_threshold_album')); - $this->f_name_link = "<a href=\"$web_path/albums.php?action=show&album=" . scrub_out($this->id) . "\" title=\"" . scrub_out($this->name) . "\">" . $this->f_name . "</a>"; - $this->f_link = $this->f_name_link; + $this->f_name = truncate_with_ellipsis($this->name,Config::get('ellipsis_threshold_album')); + + // + $this->f_name_link = "<a href=\"$web_path/albums.php?action=show&album=" . scrub_out($this->id) . "\" title=\"" . scrub_out($this->name) . "\">" . $this->f_name; + // If we've got a disk append it + if ($this->disk) { + $this->f_name_link .= " <span class=\"discnb disc" .$this->disk. "\">[" . _('Disk') . " " . $this->disk . "]</span>"; + } + $this->f_name_link .="</a>"; + + $this->f_link = $this->f_name_link; $this->f_title = $name; if ($this->artist_count == '1') { $artist = scrub_out(truncate_with_ellipsis(trim($this->artist_prefix . ' ' . $this->artist_name),Config::get('ellipsis_threshold_album'))); @@ -227,11 +235,6 @@ class Album { $this->year = "N/A"; } - // If we've got a disk append it - if ($this->disk) { - $this->f_name_link .= ' [' . _('Disk') . ' ' . $this->disk . ']'; - } - } // format /** |