diff options
| author | 2013-12-03 22:53:51 +0100 | |
|---|---|---|
| committer | 2013-12-03 22:53:51 +0100 | |
| commit | 018273e2720c481c699ecc5cca1cdc90599921f7 (patch) | |
| tree | e3112653abfb687dd65763839a3fc4fefff14030 /app/controllers/entryController.php | |
| parent | 0425432271fb709d94194cfd5ca922038c175573 (diff) | |
Corrige bug marquer tous les favoris comme lus
Corrige https://github.com/marienfressinaud/FreshRSS/issues/270
Diffstat (limited to 'app/controllers/entryController.php')
| -rwxr-xr-x | app/controllers/entryController.php | 21 |
1 files changed, 14 insertions, 7 deletions
diff --git a/app/controllers/entryController.php b/app/controllers/entryController.php index d92eb0ed3..d3159c4c3 100755 --- a/app/controllers/entryController.php +++ b/app/controllers/entryController.php @@ -47,14 +47,21 @@ class entryController extends ActionController { } else { $typeGet = $get[0]; $get = substr ($get, 2); - - if ($typeGet == 'c') { - $entryDAO->markReadCat ($get, $idMax); - $this->params = array ('get' => $nextGet); - } elseif ($typeGet == 'f') { - $entryDAO->markReadFeed ($get, $idMax); - $this->params = array ('get' => $nextGet); + switch ($typeGet) { + case 'c': + $entryDAO->markReadCat ($get, $idMax); + break; + case 'f': + $entryDAO->markReadFeed ($get, $idMax); + break; + case 's': + $entryDAO->markReadEntries ($idMax, true); + break; + case 'a': + $entryDAO->markReadEntries ($idMax); + break; } + $this->params = array ('get' => $nextGet); } $notif = array ( |
