summaryrefslogtreecommitdiff
path: root/app/controllers/entryController.php
diff options
context:
space:
mode:
authorGravatar Marien Fressinaud <dev@marienfressinaud.fr> 2013-09-14 18:13:21 +0200
committerGravatar Marien Fressinaud <dev@marienfressinaud.fr> 2013-09-14 18:13:21 +0200
commit6967de0e64b0ffa302e46da98db2c999f3a0a6df (patch)
tree6f5ac2cb20e45ac1c6aa9cfe5faf4f6240822b63 /app/controllers/entryController.php
parentcdae47efae646759571c71202821de224fbe896d (diff)
parent6d09878880e1cc94cdfc11974f734c808c33ec95 (diff)
Merge branch 'onread_jump_next' of https://github.com/Alkarex/FreshRSS into Alkarex-onread_jump_next
Diffstat (limited to 'app/controllers/entryController.php')
-rwxr-xr-xapp/controllers/entryController.php11
1 files changed, 4 insertions, 7 deletions
diff --git a/app/controllers/entryController.php b/app/controllers/entryController.php
index c7e13f471..cb9e24757 100755
--- a/app/controllers/entryController.php
+++ b/app/controllers/entryController.php
@@ -35,13 +35,10 @@ class entryController extends ActionController {
$id = Request::param ('id');
$is_read = Request::param ('is_read');
$get = Request::param ('get');
+ $nextGet = Request::param ('nextGet', $get);
$dateMax = Request::param ('dateMax', time ());
- if ($is_read) {
- $is_read = true;
- } else {
- $is_read = false;
- }
+ $is_read = !!$is_read;
$entryDAO = new EntryDAO ();
if ($id == false) {
@@ -53,10 +50,10 @@ class entryController extends ActionController {
if ($typeGet == 'c') {
$entryDAO->markReadCat ($get, $is_read, $dateMax);
- $this->params = array ('get' => 'c_' . $get);
+ $this->params = array ('get' => $nextGet);
} elseif ($typeGet == 'f') {
$entryDAO->markReadFeed ($get, $is_read, $dateMax);
- $this->params = array ('get' => 'f_' . $get);
+ $this->params = array ('get' => $nextGet);
}
}