diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-12-24 00:57:36 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-12-24 00:57:36 +0000 |
commit | 3d8ff28ac56f30075bd9c485e2ee94f486717e6f (patch) | |
tree | 46413c2ccfc5d7f99a26ecb3fe6f23ac0a9278cd /albums.php | |
parent | ee64379cf4c093d589502e72036759e66671cac7 (diff) | |
download | ampache-3d8ff28ac56f30075bd9c485e2ee94f486717e6f.tar.gz ampache-3d8ff28ac56f30075bd9c485e2ee94f486717e6f.tar.bz2 ampache-3d8ff28ac56f30075bd9c485e2ee94f486717e6f.zip |
fixed filters being applied incorrectly, and removed un-needed query on show album
Diffstat (limited to 'albums.php')
-rw-r--r-- | albums.php | 8 |
1 files changed, 2 insertions, 6 deletions
@@ -151,12 +151,11 @@ switch ($_REQUEST['action']) { $album = new Album($album_id); $album->insert_art($image,$mime); - - show_confirmation(_('Album Art Inserted'),'',"/albums.php?action=show&album=$album_id"); + header("Location:" . Config::get('web_path') . "/albums.php?action=show&album=" . $album->id); break; case 'update_from_tags': // Make sure they are a 'power' user at least - if (!$GLOBALS['user']->has_access('75')) { + if (!Access::check('interface','75')) { access_denied(); exit; } @@ -176,9 +175,6 @@ switch ($_REQUEST['action']) { $album->format(); require Config::get('prefix') . '/templates/show_album.inc.php'; - - /* Get the song ids for this album */ - $song_ids = $album->get_songs(0,$_REQUEST['artist']); break; } // switch on view |