diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-04-23 20:33:57 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-04-23 20:33:57 +0000 |
commit | 13dd43450a56bd72067b6f2350f5d188c5c7e254 (patch) | |
tree | b2bc0d26b1f7f904a15322413a044035aeca0d0f /albums.php | |
parent | a12f1083e30ae16ded9dc7aa464015ad07413632 (diff) | |
download | ampache-13dd43450a56bd72067b6f2350f5d188c5c7e254.tar.gz ampache-13dd43450a56bd72067b6f2350f5d188c5c7e254.tar.bz2 ampache-13dd43450a56bd72067b6f2350f5d188c5c7e254.zip |
fixed up part of single album view, show songs is all gone, working on replacement browse method
Diffstat (limited to 'albums.php')
-rw-r--r-- | albums.php | 23 |
1 files changed, 4 insertions, 19 deletions
@@ -21,23 +21,10 @@ require_once 'lib/init.php'; -show_template('header'); - -// We'll set any input parameters here -if(!isset($_REQUEST['match'])) { $_REQUEST['match'] = "Browse"; } -if(isset($_REQUEST['match'])) $match = scrub_in($_REQUEST['match']); -if(isset($_REQUEST['album'])) $album = scrub_in($_REQUEST['album']); -if(isset($_REQUEST['artist'])) $artist = scrub_in($_REQUEST['artist']); -$_REQUEST['artist_id'] = scrub_in($_REQUEST['artist_id']); -$min_album_size = conf('min_object_count'); -if ($min_album_size == '') { - $min_album_size = '0'; -} - -$action = scrub_in($_REQUEST['action']); +require_once Config::get('prefix') . '/templates/header.inc.php'; /* Switch on Action */ -switch ($action) { +switch ($_REQUEST['action']) { case 'clear_art': if (!$GLOBALS['user']->has_access('75')) { access_denied(); } $album = new Album($_REQUEST['album_id']); @@ -48,12 +35,10 @@ switch ($action) { $album = new Album($_REQUEST['album']); $album->format(); - require (conf('prefix') . '/templates/show_album.inc'); + require Config::get('prefix') . '/templates/show_album.inc'; /* Get the song ids for this album */ - $song_ids = $album->get_song_ids($_REQUEST['artist']); - - show_songs($song_ids,0,$album); + $song_ids = $album->get_songs(0,$_REQUEST['artist']); break; // Upload album art case 'upload_art': |