mirror of
https://github.com/Yetangitu/ampache
synced 2025-10-03 09:49:30 +02:00
Fix broken API method
Api::search_songs needed to declare a type, and Search::run needed to honour that declaration.
This commit is contained in:
parent
6fd6cc1fcc
commit
1e05bfe554
3 changed files with 16 additions and 1 deletions
|
@ -581,6 +581,7 @@ class Api {
|
|||
* This searches the songs and returns... songs
|
||||
*/
|
||||
public static function search_songs($input) {
|
||||
$array['type'] = 'song';
|
||||
$array['rule_1'] = 'anywhere';
|
||||
$array['rule_1_input'] = $input['filter'];
|
||||
$array['rule_1_operator'] = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue