mirror of
https://github.com/FreshRSS/FreshRSS.git
synced 2026-10-23 03:34:41 -04:00
Ajout d'options : possibilité de changer l'ordre des articles + possibilité de marquer comme lu au choix : tous, antérieurs à 1 jour, antérieurs à 1 semaine
This commit is contained in:
1 parent
81eab003ef
commit
d63eddf0c5
6 files changed
+115
-49
No files matched your search
@@ -31,6 +31,7 @@ class entryController extends ActionController {
|
||||
$id = Request::param ('id');
|
||||
$is_read = Request::param ('is_read');
|
||||
$get = Request::param ('get');
|
||||
$dateMax = Request::param ('dateMax', time ());
|
||||
|
||||
if ($is_read) {
|
||||
$is_read = true;
|
||||
@@ -41,16 +42,16 @@ class entryController extends ActionController {
|
||||
$entryDAO = new EntryDAO ();
|
||||
if ($id == false) {
|
||||
if (!$get) {
|
||||
$entryDAO->markReadEntries ($is_read);
|
||||
$entryDAO->markReadEntries ($is_read, $dateMax);
|
||||
} else {
|
||||
$typeGet = $get[0];
|
||||
$get = substr ($get, 2);
|
||||
|
||||
if ($typeGet == 'c') {
|
||||
$entryDAO->markReadCat ($get, $is_read);
|
||||
$entryDAO->markReadCat ($get, $is_read, $dateMax);
|
||||
$this->params = array ('get' => 'c_' . $get);
|
||||
} elseif ($typeGet == 'f') {
|
||||
$entryDAO->markReadFeed ($get, $is_read);
|
||||
$entryDAO->markReadFeed ($get, $is_read, $dateMax);
|
||||
$this->params = array ('get' => 'f_' . $get);
|
||||
}
|
||||
}
|
||||
@@ -62,7 +63,7 @@ class entryController extends ActionController {
|
||||
);
|
||||
Session::_param ('notification', $notif);
|
||||
} else {
|
||||
$entryDAO->updateEntry ($id, $values);
|
||||
$entryDAO->updateEntry ($id, array ('is_read' => $is_read));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user