瀏覽代碼

Fix entry DAO query usage

I did not fix the call in the previous commit. I hope this one is the last change needed.

We definitely need a templating engine so we could use the same controller to output different things.
This will remove code duplication between the api and the web interface.
It will allows us to build other type of api, and also refactor the rss feed as a different view of the same dataset.
Alexis Degrugillier 11 年之前
父節點
當前提交
d1c9378d33
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      p/api/greader.php

+ 1 - 1
p/api/greader.php

@@ -465,7 +465,7 @@ function streamContentsItemsIds($streamId, $start_time, $count, $order, $exclude
 	}
 	}
 
 
 	$entryDAO = FreshRSS_Factory::createEntryDao();
 	$entryDAO = FreshRSS_Factory::createEntryDao();
-	$ids = $entryDAO->listIdsWhere($type, $id, $state, $order === 'o' ? 'ASC' : 'DESC', $count, '', '', $start_time);
+	$ids = $entryDAO->listIdsWhere($type, $id, $state, $order === 'o' ? 'ASC' : 'DESC', $count, '', new FreshRSS_Search(''), $start_time);
 
 
 	$itemRefs = array();
 	$itemRefs = array();
 	foreach ($ids as $id) {
 	foreach ($ids as $id) {