summaryrefslogtreecommitdiffstats
path: root/rpc.php
diff options
context:
space:
mode:
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':