summaryrefslogtreecommitdiffstats
path: root/server/xml.server.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2009-03-09 00:59:44 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2009-03-09 00:59:44 +0000
commit242401a915eb2600f242af92c98cc9dc7190735c (patch)
tree64ac0b1c676ec424720c21564aaa611f6bb09ca0 /server/xml.server.php
parent6dbd87e0784732b2efee402b693143b71d1462d8 (diff)
downloadampache-242401a915eb2600f242af92c98cc9dc7190735c.tar.gz
ampache-242401a915eb2600f242af92c98cc9dc7190735c.tar.bz2
ampache-242401a915eb2600f242af92c98cc9dc7190735c.zip
fix the update/add filters in the api and add them into artist and album
Diffstat (limited to 'server/xml.server.php')
-rw-r--r--server/xml.server.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/server/xml.server.php b/server/xml.server.php
index b2cdf20e..3b9fafeb 100644
--- a/server/xml.server.php
+++ b/server/xml.server.php
@@ -108,6 +108,8 @@ switch ($_REQUEST['action']) {
$method = $_REQUEST['exact'] ? 'exact_match' : 'alpha_match';
Api::set_filter($method,$_REQUEST['filter']);
+ Api::set_filter('add',$_REQUEST['add']);
+ Api::set_filter('update',$_REQUEST['update']);
// Set the offset
xmlData::set_offset($_REQUEST['offset']);
@@ -150,6 +152,9 @@ switch ($_REQUEST['action']) {
$method = $_REQUEST['exact'] ? 'exact_match' : 'alpha_match';
Api::set_filter($method,$_REQUEST['filter']);
+ Api::set_filter('add',$_REQUEST['add']);
+ Api::set_filter('update',$_REQUEST['update']);
+
$albums = Browse::get_objects();
// Set the offset
@@ -232,6 +237,7 @@ switch ($_REQUEST['action']) {
$method = $_REQUEST['exact'] ? 'exact_match' : 'alpha_match';
Api::set_filter($method,$_REQUEST['filter']);
Api::set_filter('add',$_REQUEST['add']);
+ Api::set_filter('update',$_REQUEST['update']);
$songs = Browse::get_objects();