summaryrefslogtreecommitdiffstats
path: root/albums.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2006-01-16 00:55:50 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2006-01-16 00:55:50 +0000
commit3a71b821a3e1c603d839ac467a13f51d98d588e8 (patch)
tree5b8d881254ce0958db8aec8983aca05cb314288e /albums.php
parenta3362e3d3f7b31f27bcccb8b2384cfa9c0d219ac (diff)
downloadampache-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.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/albums.php b/albums.php
index 4ea46dfc..5c1a6b4a 100644
--- a/albums.php
+++ b/albums.php
@@ -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&amp;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&amp;album=" . $album->id);
}
$albumname = $album->name;