summaryrefslogtreecommitdiffstats
path: root/albums.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-12-24 00:57:36 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-12-24 00:57:36 +0000
commit3d8ff28ac56f30075bd9c485e2ee94f486717e6f (patch)
tree46413c2ccfc5d7f99a26ecb3fe6f23ac0a9278cd /albums.php
parentee64379cf4c093d589502e72036759e66671cac7 (diff)
downloadampache-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.php8
1 files changed, 2 insertions, 6 deletions
diff --git a/albums.php b/albums.php
index c091deb4..ef80d218 100644
--- a/albums.php
+++ b/albums.php
@@ -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&amp;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