diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2006-01-02 20:48:16 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2006-01-02 20:48:16 +0000 |
commit | 54d83e0796666854704298d17398df653877c08c (patch) | |
tree | 819a6810d6b7424953735326e06d1e515f502a99 /templates | |
parent | 2af0776aa93e706a303ad6701fb989f8e00b0cd2 (diff) | |
download | ampache-54d83e0796666854704298d17398df653877c08c.tar.gz ampache-54d83e0796666854704298d17398df653877c08c.tar.bz2 ampache-54d83e0796666854704298d17398df653877c08c.zip |
fixed a mistake made in patch from di-fosfor
Diffstat (limited to 'templates')
-rw-r--r-- | templates/show_album.inc | 3 | ||||
-rw-r--r-- | templates/show_now_playing.inc | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/templates/show_album.inc b/templates/show_album.inc index bd6cbcf8..48dd44fd 100644 --- a/templates/show_album.inc +++ b/templates/show_album.inc @@ -49,7 +49,8 @@ $username=$user->username; <td width="140" align="center"> <?php if ($album_name != "Unknown (Orphaned)") { - echo "<a target=\"_blank\" href=\"" . conf('web_path') . "/albumart.php?id=" . $album->id . "&type=popup\">"; + $aa_url = conf('web_path') . "/albumart.php?id=" . $album->id . "&type=popup"; + echo "<a target=\"_blank\" href=\"$aa_url\" onclick=\"popup_art('$aa_url'); return false;\">"; echo "<img border=\"0\" src=\"" . conf('web_path') . "/albumart.php?id=" . $album->id . "&thumb=2\" alt=\"Album Art\" height=\"128\" />"; echo "</a>\n"; } diff --git a/templates/show_now_playing.inc b/templates/show_now_playing.inc index 22422388..193a469f 100644 --- a/templates/show_now_playing.inc +++ b/templates/show_now_playing.inc @@ -61,7 +61,8 @@ echo "\t<a title=\"" . htmlspecialchars($album) . "\" href=\"$web_path/albums.php?action=show&album=$song->album\">$song->f_album</a></td>"; if (conf('play_album_art')) { echo "\t<td align=\"center\">"; - echo "<a target=\"_blank\" href=\"" . conf('web_path') . "/albumart.php?id=" . $song->album . "&type=popup\">"; + $aa_url = conf('web_path') . "/albumart.php?id=" . $song->album . "&type=popup"; + echo "<a target=\"_blank\" href=\"$aa_url\" onclick=\"popup_art('$aa_url'); return false;\">"; echo "<img align=\"middle\" border=\"0\" src=\"" . conf('web_path') . "/albumart.php?id=" . $song->album . "&fast=1&thumb=1\" alt=\"Album Art\" height=\"75\" />"; echo "</a>\n"; echo "\t</td>\n"; |