diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2006-01-16 00:55:50 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2006-01-16 00:55:50 +0000 |
commit | 3a71b821a3e1c603d839ac467a13f51d98d588e8 (patch) | |
tree | 5b8d881254ce0958db8aec8983aca05cb314288e /albums.php | |
parent | a3362e3d3f7b31f27bcccb8b2384cfa9c0d219ac (diff) | |
download | ampache-3a71b821a3e1c603d839ac467a13f51d98d588e8.tar.gz ampache-3a71b821a3e1c603d839ac467a13f51d98d588e8.tar.bz2 ampache-3a71b821a3e1c603d839ac467a13f51d98d588e8.zip |
fixed amazon and fixed the test page to account for new read config
Diffstat (limited to 'albums.php')
-rw-r--r-- | albums.php | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -61,7 +61,7 @@ elseif (isset($album)) { // Finds the Album art from amazon elseif ($_REQUEST['action'] === 'find_art') { - if (!$user->has_access('25')) { access_denied(); } + if (!$GLOBALS['user']->has_access('25')) { access_denied(); } // csammis: In response to https://ampache.bountysource.com/Task.View?task_id=86, // adding retry to album art searching. I hope my PHP style doesn't make vollmer cry, @@ -70,7 +70,8 @@ elseif ($_REQUEST['action'] === 'find_art') { // *NOTE* I knocked it up a notch with some more horrible code :S - Vollmer /* Echo notice if no amazon token is found, but it's enabled */ - if (in_array('amazon',conf('album_art_order')) AND !conf('amazon_developer_key')) { + + if (!conf('amazon_developer_key')) { echo "<br /><div class=\"fatalerror\">" . _("Error") . ": " . _("No Amazon Developer Key set, amazon album art searching will not work") . "</div>"; } @@ -101,7 +102,7 @@ elseif ($_REQUEST['action'] === 'find_art') { include(conf('prefix') . '/templates/show_album_art.inc.php'); } else { - show_confirmation(_("Album Art Not Located"),_("Album Art could not be located at this time. This may be due to Amazon being busy, or the album not being present in their collection."),"/albums.php?action=show&album=" . $album->id); + show_confirmation(_('Album Art Not Located'),_('Album Art could not be located at this time. This may be due to Amazon being busy, or the album not being present in their collection.'),"/albums.php?action=show&album=" . $album->id); } $albumname = $album->name; |