From 0b733c05eed503ba8c00443a77ec45664b81ce28 Mon Sep 17 00:00:00 2001 From: Karl 'vollmerk' Vollmer Date: Fri, 11 Apr 2008 02:35:32 +0000 Subject: new flash player that still does not work, fixed some bad references to the ellipsis thresholds --- docs/CHANGELOG | 1 + lib/class/album.class.php | 4 ++-- lib/class/artist.class.php | 2 +- lib/class/update.class.php | 2 +- lib/general.lib.php | 8 ++++---- modules/flash/xspf_jukebox.swf | Bin 17839 -> 24727 bytes 6 files changed, 9 insertions(+), 8 deletions(-) diff --git a/docs/CHANGELOG b/docs/CHANGELOG index 1995e413..92824d90 100755 --- a/docs/CHANGELOG +++ b/docs/CHANGELOG @@ -4,6 +4,7 @@ -------------------------------------------------------------------------- v.3.4-Beta3 + - Fixed incorrect reference to ellipsis thresholds - Fixed page point not being remembered by the back button - Fixed naming restrictions on database name during install - Fixed issue where verify updated all songs in the catalog even diff --git a/lib/class/album.class.php b/lib/class/album.class.php index 1fae7fd0..713b8a0a 100644 --- a/lib/class/album.class.php +++ b/lib/class/album.class.php @@ -209,7 +209,7 @@ 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->full_name,Config::get('ellipsis_threshold_album')); + $this->f_name = truncate_with_ellipsis($this->full_name,Config::get('ellipse_threshold_album')); $this->f_name_link = "id) . "\" title=\"" . scrub_out($this->full_name) . "\">" . $this->f_name; // If we've got a disk append it @@ -221,7 +221,7 @@ class Album { $this->f_link = $this->f_name_link; $this->f_title = $full_name; if ($this->artist_count == '1') { - $artist = scrub_out(truncate_with_ellipsis(trim($this->artist_prefix . ' ' . $this->artist_name),Config::get('ellipsis_threshold_artist'))); + $artist = scrub_out(truncate_with_ellipsis(trim($this->artist_prefix . ' ' . $this->artist_name),Config::get('ellipse_threshold_artist'))); $this->f_artist_link = "artist_id . "\" title=\"" . scrub_out($this->artist_name) . "\">" . $artist . ""; $this->f_artist = $artist; } diff --git a/lib/class/artist.class.php b/lib/class/artist.class.php index 057ec549..38361194 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),Config::get('ellipsis_threshold_artist')); + $name = truncate_with_ellipsis(trim($this->prefix . " " . $this->name),Config::get('ellipse_threshold_artist')); $this->f_name = $name; $this->f_full_name = trim($this->prefix . " " . $this->name); diff --git a/lib/class/update.class.php b/lib/class/update.class.php index 291c26e8..6efb2de6 100644 --- a/lib/class/update.class.php +++ b/lib/class/update.class.php @@ -1,7 +1,7 @@ f_artist_full - $song->title"; /* Add to array */ $song->link = "id\" title=\"". scrub_out($text) ."\">" . - scrub_out(truncate_with_ellipsis($text, Config::get('ellipsis_threshold_title')+3)) . " (" . $r['count'] . ")"; + scrub_out(truncate_with_ellipsis($text, Config::get('ellipse_threshold_title')+3)) . " (" . $r['count'] . ")"; $items[] = $song; } // if it's a song @@ -241,7 +241,7 @@ function get_global_popular($type) { $artist = new Artist($r['object_id']); $artist->format(); $artist->link = "full_name) ."\">" . - truncate_with_ellipsis($artist->full_name, Config::get('ellipsis_threshold_artist')+3) . " (" . $r['count'] . ")"; + truncate_with_ellipsis($artist->full_name, Config::get('ellipse_threshold_artist')+3) . " (" . $r['count'] . ")"; $items[] = $artist; } // if type isn't artist @@ -250,7 +250,7 @@ function get_global_popular($type) { $album = new Album($r['object_id']); $album->format(); $album->link = "name) ."\">" . - scrub_out(truncate_with_ellipsis($album->name,Config::get('ellipsis_threshold_album')+3)) . " (" . $r['count'] . ")"; + scrub_out(truncate_with_ellipsis($album->name,Config::get('ellipse_threshold_album')+3)) . " (" . $r['count'] . ")"; $items[] = $album; } // else not album @@ -258,7 +258,7 @@ function get_global_popular($type) { $genre = new Genre($r['object_id']); $genre->format(); $genre->link = "name) . "\">" . - scrub_out(truncate_with_ellipsis($genre->name,Config::get('ellipsis_threshold_title')+3)) . " (" . $r['count'] . ")"; + scrub_out(truncate_with_ellipsis($genre->name,Config::get('ellipse_threshold_title')+3)) . " (" . $r['count'] . ")"; $items[] = $genre; } // end if genre } // end foreach diff --git a/modules/flash/xspf_jukebox.swf b/modules/flash/xspf_jukebox.swf index d3828e9b..5b98a4c8 100644 Binary files a/modules/flash/xspf_jukebox.swf and b/modules/flash/xspf_jukebox.swf differ -- cgit