diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-07-05 03:32:38 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-07-05 03:32:38 +0000 |
commit | d24fe88905baf183892ed9fd757e698e56309904 (patch) | |
tree | 0861389b8de13f06bce0fa4c13299b83fba00ae7 /albums.php | |
parent | 9457b75fb16f05347c08b484db6fe2b848efba15 (diff) | |
download | ampache-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.php | 12 |
1 files changed, 7 insertions, 5 deletions
@@ -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> "; - echo "<a href=\"" . conf('web_path') . "/albums.php?action=show&album=" . scrub_out($_REQUEST['album_id']) . "\">[" . _('Return') . "]</a>"; + echo "<a href=\"" . Config::get('web_path') . "/albums.php?action=show&album=" . scrub_out($_REQUEST['album_id']) . "\">[" . _('Return') . "]</a>"; show_box_bottom(); break; // Browse by Album |