summaryrefslogtreecommitdiffstats
path: root/lib/general.lib.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2006-10-29 19:16:56 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2006-10-29 19:16:56 +0000
commitc63317e869d1da28ab3a429bf4116446f9bcbc64 (patch)
tree6b717f2dae35ddd22bcd7755c3c0f9d453a3acd0 /lib/general.lib.php
parent98c4a922621fd2df37a1204c09b06594f20536ea (diff)
downloadampache-c63317e869d1da28ab3a429bf4116446f9bcbc64.tar.gz
ampache-c63317e869d1da28ab3a429bf4116446f9bcbc64.tar.bz2
ampache-c63317e869d1da28ab3a429bf4116446f9bcbc64.zip
some initial flash player integration from forums and some bug fixes on most popular
Diffstat (limited to 'lib/general.lib.php')
-rw-r--r--lib/general.lib.php10
1 files changed, 6 insertions, 4 deletions
diff --git a/lib/general.lib.php b/lib/general.lib.php
index d9823a40..fc60db3e 100644
--- a/lib/general.lib.php
+++ b/lib/general.lib.php
@@ -627,21 +627,23 @@ function get_global_popular($type) {
/* If Artist */
elseif ( $type == 'artist' ) {
- $artist = get_artist_name($r['object_id']);
- $items[] = "<li> <a href=\"$web_path/artists.php?action=show&amp;artist=$r->object_id\" title=\"". scrub_out($artist) ."\">" .
+ $artist_obj = new Artist($r['object_id']);
+ $artist_obj->format_artist();
+ $artist = $artist_obj->full_name;
+ $items[] = "<li> <a href=\"$web_path/artists.php?action=show&amp;artist=" . $r['object_id'] . "\" title=\"". scrub_out($artist) ."\">" .
scrub_out(truncate_with_ellipse($artist, conf('ellipse_threshold_artist')+3)) . "&nbsp;(" . $r['count'] . ")</a> </li>";
} // if type isn't artist
/* If Album */
elseif ( $type == 'album' ) {
$album = new Album($r['object_id']);
- $items[] = "<li> <a href=\"$web_path/albums.php?action=show&amp;album=$r->object_id\" title=\"". scrub_out($album->name) ."\">" .
+ $items[] = "<li> <a href=\"$web_path/albums.php?action=show&amp;album=" . $r['object_id'] . "\" title=\"". scrub_out($album->name) ."\">" .
scrub_out(truncate_with_ellipse($album->name,conf('ellipse_threshold_album')+3)) . "&nbsp;(" . $r['count'] . ")</a> </li>";
} // else not album
elseif ($type == 'genre') {
$genre = new Genre($r['object_id']);
- $items[] = "<li> <a href=\"$web_path/browse.php?action=genre&amp;genre=$r->object_id\" title=\"" . scrub_out($genre->name) . "\">" .
+ $items[] = "<li> <a href=\"$web_path/browse.php?action=genre&amp;genre=" . $r['object_id'] . "\" title=\"" . scrub_out($genre->name) . "\">" .
scrub_out(truncate_with_ellipse($genre->name,conf('ellipse_threshold_title')+3)) . "&nbsp;(" . $r['count'] . ")</a> </li>";
} // end if genre
} // end foreach