aboutsummaryrefslogtreecommitdiff
path: root/app/Models/ConfigurationDAO.php
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2013-12-25 20:58:38 +0100
committerGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2013-12-25 20:58:38 +0100
commit7b4451912e2a9008a49854a2496cf9bb99b7ed10 (patch)
tree99b6c2173bb0b8a528050aac6fab4e633f6be355 /app/Models/ConfigurationDAO.php
parent318954dfbd64f7a29203cdb25a95400dea0cec0d (diff)
parent7eda2793bbc3210ae37aa66511fd7ad7661c2149 (diff)
Merge remote-tracking branch 'origin/dev' into beta
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 (