diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-12-01 21:36:24 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-12-01 21:36:24 +0000 |
commit | 362610c13217a9ee364f97262c2fc878d97c335a (patch) | |
tree | 885d1b54b04c77906f9eccea365c6fe091f81b34 | |
parent | 06bba3740b0bb4efd11cba8386a414ad4ae1fdb6 (diff) | |
download | ampache-362610c13217a9ee364f97262c2fc878d97c335a.tar.gz ampache-362610c13217a9ee364f97262c2fc878d97c335a.tar.bz2 ampache-362610c13217a9ee364f97262c2fc878d97c335a.zip |
fixed access denied display, fixed typo in error log and fixed missing artist_songs
-rw-r--r-- | lib/class/stream.class.php | 2 | ||||
-rw-r--r-- | lib/ui.lib.php | 4 | ||||
-rw-r--r-- | server/xml.server.php | 8 |
3 files changed, 12 insertions, 2 deletions
diff --git a/lib/class/stream.class.php b/lib/class/stream.class.php index cc6e9dc1..ab274bf3 100644 --- a/lib/class/stream.class.php +++ b/lib/class/stream.class.php @@ -70,7 +70,7 @@ class Stream { // We're starting insert the session into session_stream if (!$this->insert_session()) { - debug_event('stream','Session Insertion failure, aboring','3'); + debug_event('stream','Session Insertion failure, aborting','3'); return false; } diff --git a/lib/ui.lib.php b/lib/ui.lib.php index 10924f08..f8696655 100644 --- a/lib/ui.lib.php +++ b/lib/ui.lib.php @@ -87,7 +87,9 @@ if (!function_exists('_')) { * that they aren't allowed to */ function access_denied() { - + + // Clear any crap we've got up top + ob_end_clean(); require_once Config::get('prefix') . '/templates/show_denied.inc.php'; exit; diff --git a/server/xml.server.php b/server/xml.server.php index 3cb56e20..beced1f4 100644 --- a/server/xml.server.php +++ b/server/xml.server.php @@ -87,6 +87,14 @@ switch ($_REQUEST['action']) { echo xmlData::albums($albums); break; + case 'artist_songs': + $artist = new Artist($_REQUEST['filter']); + $songs = $artist->get_songs(); + + // Set the offset + xmlData::set_offset($_REQUEST['offset']); + xmlData::songs($songs); + break; case 'albums': Browse::reset_filters(); Browse::set_type('album'); |