summaryrefslogtreecommitdiffstats
path: root/albums.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-07-05 03:32:38 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-07-05 03:32:38 +0000
commitd24fe88905baf183892ed9fd757e698e56309904 (patch)
tree0861389b8de13f06bce0fa4c13299b83fba00ae7 /albums.php
parent9457b75fb16f05347c08b484db6fe2b848efba15 (diff)
downloadampache-d24fe88905baf183892ed9fd757e698e56309904.tar.gz
ampache-d24fe88905baf183892ed9fd757e698e56309904.tar.bz2
ampache-d24fe88905baf183892ed9fd757e698e56309904.zip
fixed update from tags for artist and album and fixed clear album art
Diffstat (limited to 'albums.php')
-rw-r--r--albums.php12
1 files changed, 7 insertions, 5 deletions
diff --git a/albums.php b/albums.php
index cb9d86a2..9e6a7a37 100644
--- a/albums.php
+++ b/albums.php
@@ -155,16 +155,18 @@ switch ($_REQUEST['action']) {
show_confirmation(_('Album Art Inserted'),'',"/albums.php?action=show&album=$album_id");
break;
case 'update_from_tags':
-
- $album = new Album($_REQUEST['album_id']);
+ // Make sure they are a 'power' user at least
+ if (!$GLOBALS['user']->has_access('75')) {
+ access_denied();
+ exit;
+ }
show_box_top(_('Starting Update from Tags'));
- $catalog = new Catalog();
- $catalog->update_single_item('album',$_REQUEST['album_id']);
+ Catalog::update_single_item('album',$_REQUEST['album_id']);
echo "<br /><b>" . _('Update From Tags Complete') . "</b> &nbsp;&nbsp;";
- echo "<a href=\"" . conf('web_path') . "/albums.php?action=show&amp;album=" . scrub_out($_REQUEST['album_id']) . "\">[" . _('Return') . "]</a>";
+ echo "<a href=\"" . Config::get('web_path') . "/albums.php?action=show&amp;album=" . scrub_out($_REQUEST['album_id']) . "\">[" . _('Return') . "]</a>";
show_box_bottom();
break;
// Browse by Album