summaryrefslogtreecommitdiffstats
path: root/lib/class/album.class.php
diff options
context:
space:
mode:
authorPaul Arthur <paul.arthur@flowerysong.com>2013-01-26 01:15:59 -0500
committerPaul Arthur <paul.arthur@flowerysong.com>2013-01-26 01:15:59 -0500
commiteaa44dcd0938ad48f4a9f863b24ca5d3a318ae10 (patch)
tree71d577e01200b3a143971a3a23d8f6b7cdf545fe /lib/class/album.class.php
parent42133f38d223a2b3b81d309f2d1a983ef2012485 (diff)
downloadampache-eaa44dcd0938ad48f4a9f863b24ca5d3a318ae10.tar.gz
ampache-eaa44dcd0938ad48f4a9f863b24ca5d3a318ae10.tar.bz2
ampache-eaa44dcd0938ad48f4a9f863b24ca5d3a318ae10.zip
Continue moving things into UI
check_php_iconv() from lib/debug.lib.php becomes UI::check_iconv() truncate_with_ellipsis() from lib/ui.lib.php becomes UI::truncate()
Diffstat (limited to 'lib/class/album.class.php')
-rw-r--r--lib/class/album.class.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/class/album.class.php b/lib/class/album.class.php
index 16ef541d..c7b88dcf 100644
--- a/lib/class/album.class.php
+++ b/lib/class/album.class.php
@@ -240,7 +240,7 @@ class Album extends database_object {
foreach ($data as $key=>$value) { $this->$key = $value; }
/* Truncate the string if it's to long */
- $this->f_name = truncate_with_ellipsis($this->full_name,Config::get('ellipse_threshold_album'));
+ $this->f_name = UI::truncate($this->full_name,Config::get('ellipse_threshold_album'));
$this->f_name_link = "<a href=\"$web_path/albums.php?action=show&amp;album=" . scrub_out($this->id) . "\" title=\"" . scrub_out($this->full_name) . "\">" . scrub_out($this->f_name);
// If we've got a disk append it
@@ -254,7 +254,7 @@ class Album extends database_object {
if ($this->artist_count == '1') {
$artist = trim(trim($this->artist_prefix) . ' ' . trim($this->artist_name));
$this->f_artist_name = $artist;
- $artist = scrub_out(truncate_with_ellipsis($artist), Config::get('ellipse_threshold_artist'));
+ $artist = scrub_out(UI::truncate($artist), Config::get('ellipse_threshold_artist'));
$this->f_artist_link = "<a href=\"$web_path/artists.php?action=show&amp;artist=" . $this->artist_id . "\" title=\"" . scrub_out($this->artist_name) . "\">" . $artist . "</a>";
$this->f_artist = $artist;
}