From 65929b1bcc5e8692dd6e716d3066fbd92d754a26 Mon Sep 17 00:00:00 2001 From: spocky Date: Thu, 11 Jan 2007 22:02:45 +0000 Subject: - Added artist name on "Albums of the Moment" tooltip - Don't display "Album of the Moment" without art - Minor html/text adjustments --- lib/album.lib.php | 2 +- templates/show_random_albums.inc.php | 2 +- templates/show_random_play.inc | 4 ++-- templates/show_search.inc | 8 ++++---- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/lib/album.lib.php b/lib/album.lib.php index 134e040e..29c9e90a 100644 --- a/lib/album.lib.php +++ b/lib/album.lib.php @@ -70,7 +70,7 @@ function get_random_albums($count='') { $count = sql_escape($count); - $sql = "SELECT id FROM album ORDER BY RAND() LIMIT $count"; + $sql = "SELECT id FROM album WHERE art IS NOT NULL ORDER BY RAND() LIMIT $count"; $db_results = mysql_query($sql,dbh()); $results = array(); diff --git a/templates/show_random_albums.inc.php b/templates/show_random_albums.inc.php index bc41edef..b2f3348d 100644 --- a/templates/show_random_albums.inc.php +++ b/templates/show_random_albums.inc.php @@ -27,7 +27,7 @@ $web_path = conf('web_path'); foreach ($albums as $album_id) { $album = new Album($album_id); $album->format(); - $name = scrub_out($album->name); + $name = scrub_out('[' . $album->artist . '] ' . $album->name); ?> diff --git a/templates/show_random_play.inc b/templates/show_random_play.inc index 7216f41b..dffadd22 100644 --- a/templates/show_random_play.inc +++ b/templates/show_random_play.inc @@ -46,8 +46,8 @@ - - : + + @@ -100,7 +100,7 @@ - : + - : +