diff options
| author | 2014-04-15 10:10:29 +0200 | |
|---|---|---|
| committer | 2014-04-15 10:10:29 +0200 | |
| commit | 339a12698c07eb466c6a1ab8ffa856d8a8e1f506 (patch) | |
| tree | d599dd61687b5b4ccd5aa07ae5c500533dc4bcef /app/Models/Configuration.php | |
| parent | 951a137f2d05594dd0b61b9d86567cf4e9a12f5a (diff) | |
| parent | bdd7b7b13e6fdcdb9110cbee3618bf2b5fc89b71 (diff) | |
Merge pull request #486 from aledeg/simple-layout
New toggle buttons to filter articles (was: Delete favorite button)
Diffstat (limited to 'app/Models/Configuration.php')
| -rw-r--r-- | app/Models/Configuration.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/Models/Configuration.php b/app/Models/Configuration.php index 80031369e..4b52fa05b 100644 --- a/app/Models/Configuration.php +++ b/app/Models/Configuration.php @@ -13,7 +13,7 @@ class FreshRSS_Configuration { 'apiPasswordHash' => '', //CRYPT_BLOWFISH 'posts_per_page' => 20, 'view_mode' => 'normal', - 'default_view' => 'not_read', + 'default_view' => FreshRSS_Entry::STATE_NOT_READ, 'auto_load_more' => true, 'display_posts' => false, 'onread_jump_next' => true, @@ -131,7 +131,7 @@ class FreshRSS_Configuration { } } public function _default_view ($value) { - $this->data['default_view'] = $value === 'all' ? 'all' : 'not_read'; + $this->data['default_view'] = $value === FreshRSS_Entry::STATE_ALL ? FreshRSS_Entry::STATE_ALL : FreshRSS_Entry::STATE_NOT_READ; } public function _display_posts ($value) { $this->data['display_posts'] = ((bool)$value) && $value !== 'no'; |
