summaryrefslogtreecommitdiffstats
path: root/lib/class/artist.class.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2008-01-13 05:59:13 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2008-01-13 05:59:13 +0000
commitcba4a991c0f554c2b5e3dec7e882476ff73760bb (patch)
tree1c1ce94578b23e8ef4e8350b525c61441bc78a65 /lib/class/artist.class.php
parent40a6aaea253631c6e54cd28bc957ada5d12e6e39 (diff)
downloadampache-cba4a991c0f554c2b5e3dec7e882476ff73760bb.tar.gz
ampache-cba4a991c0f554c2b5e3dec7e882476ff73760bb.tar.bz2
ampache-cba4a991c0f554c2b5e3dec7e882476ff73760bb.zip
minor tweaks to session insertion to prevent crazy people with http agent strings over 255 from breaking the query, also fixed missing truncate
Diffstat (limited to 'lib/class/artist.class.php')
-rw-r--r--lib/class/artist.class.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/class/artist.class.php b/lib/class/artist.class.php
index 67171faa..1409518b 100644
--- a/lib/class/artist.class.php
+++ b/lib/class/artist.class.php
@@ -223,7 +223,7 @@ class Artist {
public function format() {
/* Combine prefix and name, trim then add ... if needed */
- $name = truncate_with_ellipsis(trim($this->prefix . " " . $this->name));
+ $name = truncate_with_ellipsis(trim($this->prefix . " " . $this->name),Config::get('ellipsis_threshold_artist'));
$this->f_name = $name;
$this->f_full_name = trim($this->prefix . " " . $this->name);