aboutsummaryrefslogtreecommitdiff
path: root/app/Models/ConfigurationDAO.php
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2013-12-25 17:37:52 +0100
committerGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2013-12-25 17:37:52 +0100
commit06d4b8d10247146d9c6f7c78ff9fc584438dd8fe (patch)
treec85a0f839df94ef77a168ce0865586e9f03372af /app/Models/ConfigurationDAO.php
parenta4b890b67fb4d97c97a2b1b455c327ce4b905194 (diff)
Option globale pour la taille minimale de l'historique par défaut
Plus une réorganisation des options
Diffstat (limited to 'app/Models/ConfigurationDAO.php')
-rw-r--r--app/Models/ConfigurationDAO.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/app/Models/ConfigurationDAO.php b/app/Models/ConfigurationDAO.php
index 0eebf2d90..91210e701 100644
--- a/app/Models/ConfigurationDAO.php
+++ b/app/Models/ConfigurationDAO.php
@@ -10,6 +10,7 @@ class FreshRSS_ConfigurationDAO extends Minz_ModelArray {
public $lazyload = 'yes';
public $sort_order = 'DESC';
public $old_entries = 3;
+ public $keep_history_default = 0;
public $shortcuts = array (
'mark_read' => 'r',
'mark_favorite' => 'f',
@@ -62,7 +63,7 @@ class FreshRSS_ConfigurationDAO extends Minz_ModelArray {
$this->language = $this->array['language'];
}
if (isset ($this->array['posts_per_page'])) {
- $this->posts_per_page = $this->array['posts_per_page'];
+ $this->posts_per_page = intval($this->array['posts_per_page']);
}
if (isset ($this->array['view_mode'])) {
$this->view_mode = $this->array['view_mode'];
@@ -83,7 +84,10 @@ class FreshRSS_ConfigurationDAO extends Minz_ModelArray {
$this->sort_order = $this->array['sort_order'];
}
if (isset ($this->array['old_entries'])) {
- $this->old_entries = $this->array['old_entries'];
+ $this->old_entries = intval($this->array['old_entries']);
+ }
+ if (isset ($this->array['keep_history_default'])) {
+ $this->keep_history_default = intval($this->array['keep_history_default']);
}
if (isset ($this->array['shortcuts'])) {
$this->shortcuts = array_merge (