Explorar o código

Fix API to use the search object

Since the internal of the listWhere method was changed, the API wasn't working. It was still calling the method with the old parameters.
I didn't test it but now, it should work.
Alexis Degrugillier %!s(int64=11) %!d(string=hai) anos
pai
achega
f3f8d73dda
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      p/api/greader.php

+ 1 - 1
p/api/greader.php

@@ -371,7 +371,7 @@ function streamContents($path, $include_target, $start_time, $count, $order, $ex
 	}
 
 	$entryDAO = FreshRSS_Factory::createEntryDao();
-	$entries = $entryDAO->listWhere($type, $include_target, $state, $order === 'o' ? 'ASC' : 'DESC', $count, $continuation, '', $start_time);
+	$entries = $entryDAO->listWhere($type, $include_target, $state, $order === 'o' ? 'ASC' : 'DESC', $count, $continuation, new FreshRSS_Search(''), $start_time);
 
 	$items = array();
 	foreach ($entries as $entry) {