aboutsummaryrefslogtreecommitdiff
path: root/app/Models/Configuration.php
diff options
context:
space:
mode:
authorGravatar Marien Fressinaud <dev@marienfressinaud.fr> 2014-05-13 19:36:34 +0200
committerGravatar Marien Fressinaud <dev@marienfressinaud.fr> 2014-05-13 19:36:34 +0200
commite763cd407a57e4829c2b6ffbddb164e5676670d7 (patch)
tree7f61e697e3bc4407f73f8d341900bca392ac57a3 /app/Models/Configuration.php
parent4580e177e1986f50c71abb26e90800dc46028693 (diff)
parentc96c80ee9afe03e97229be71e5bc3ea397cfb260 (diff)
Merge branch 'dev' of github.com:marienfressinaud/FreshRSS into dev
Diffstat (limited to 'app/Models/Configuration.php')
-rw-r--r--app/Models/Configuration.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/app/Models/Configuration.php b/app/Models/Configuration.php
index 80031369e..8d3e69a1c 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,
@@ -39,6 +39,7 @@ class FreshRSS_Configuration {
'collapse_entry' => 'c',
'load_more' => 'm',
'auto_share' => 's',
+ 'focus_search' => 'a',
),
'topline_read' => true,
'topline_favorite' => true,
@@ -131,7 +132,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';