summaryrefslogtreecommitdiffstats
path: root/rpc.php
diff options
context:
space:
mode:
authorAndreas Unterkircher <unki@netshadow.at>2007-07-17 20:24:56 +0000
committerAndreas Unterkircher <unki@netshadow.at>2007-07-17 20:24:56 +0000
commit984b068b1369819a44bbfc4412476da0da49607f (patch)
tree77742123fb1ed67c05ee4ce6b65798781dc324ae /rpc.php
parent94bb73ca0d019247d4f08fb03a7f5afc2b5323ee (diff)
issue50, further code changes to be able to combine tag- and date-search
git-svn-id: file:///var/lib/svn/phpfspot/trunk@219 fa6a889d-dae6-447d-9e79-4ba9a3039384
Diffstat (limited to 'rpc.php')
-rw-r--r--rpc.php12
1 files changed, 2 insertions, 10 deletions
diff --git a/rpc.php b/rpc.php
index 2e30459..5d9bb37 100644
--- a/rpc.php
+++ b/rpc.php
@@ -90,17 +90,9 @@ class PHPFSPOT_RPC {
$fspot->showCredits();
break;
- case 'tag_search':
+ case 'search':
- $fspot->resetDateSearch();
- $fspot->startTagSearch($_GET['for']);
- break;
-
- case 'date_search':
-
- $fspot->resetTagSearch();
- $fspot->resetTags();
- $fspot->startDateSearch($_GET['from'], $_GET['to']);
+ $fspot->startSearch($_GET['for'], $_GET['from'], $_GET['to']);
break;
case 'get_export':