diff options
author | Bernhard Posselt <nukeawhale@gmail.com> | 2013-04-16 15:19:05 +0200 |
---|---|---|
committer | Bernhard Posselt <nukeawhale@gmail.com> | 2013-04-16 15:23:12 +0200 |
commit | dee17d002d87667f7d0f4478e1f0180135618c38 (patch) | |
tree | d71c6896bd558b28fa16af0c424b2f4d1aca768c /controller | |
parent | 8df6d36d49d89f3bb7186b36436606adb039b3f8 (diff) |
dont show unread count when it is 0, dont bold read feeds, implemented autopaging
Diffstat (limited to 'controller')
-rw-r--r-- | controller/itemcontroller.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/controller/itemcontroller.php b/controller/itemcontroller.php index cfdfc4156..5387f40a2 100644 --- a/controller/itemcontroller.php +++ b/controller/itemcontroller.php @@ -50,7 +50,7 @@ class ItemController extends Controller { */ public function items(){ $userId = $this->api->getUserId(); - $showAll = $this->api->getUserValue($userId, 'showAll') === 'true'; + $showAll = $this->api->getUserValue('showAll') === '1'; $limit = $this->params('limit'); $type = (int) $this->params('type'); @@ -61,12 +61,12 @@ class ItemController extends Controller { if($limit !== null){ $offset = (int) $this->params('offset', 0); - $items = $this->itemBusinessLayer->findAll($id, $type, (int) $limit, $offset, - $showAll, $userId); + $items = $this->itemBusinessLayer->findAll($id, $type, (int) $limit, + $offset, $showAll, $userId); } else { $updatedSince = (int) $this->params('updatedSince'); - $items = $this->itemBusinessLayer->findAllNew($id, $type, $updatedSince, - $showAll, $userId); + $items = $this->itemBusinessLayer->findAllNew($id, $type, + $updatedSince, $showAll, $userId); } $params = array( |