aboutsummaryrefslogtreecommitdiff
path: root/app/Models/Configuration.php
diff options
context:
space:
mode:
authorGravatar Marien Fressinaud <dev@marienfressinaud.fr> 2014-09-17 11:22:45 +0200
committerGravatar Marien Fressinaud <dev@marienfressinaud.fr> 2014-09-17 11:22:45 +0200
commit9fec7f328b077993499c282ccb59414fb50ca84f (patch)
tree62d0aff4bb319c0946d6560dbea964496f82c59b /app/Models/Configuration.php
parentf5c863705ba63b124decb3769fc26798bf12a016 (diff)
Coding style + i18n
Change "Show only unread or read if no unread" into "Adjust showing". It is less explicit but shorter.
Diffstat (limited to 'app/Models/Configuration.php')
-rw-r--r--app/Models/Configuration.php24
1 files changed, 12 insertions, 12 deletions
diff --git a/app/Models/Configuration.php b/app/Models/Configuration.php
index e47b042c8..352e70f4f 100644
--- a/app/Models/Configuration.php
+++ b/app/Models/Configuration.php
@@ -141,18 +141,18 @@ class FreshRSS_Configuration {
}
}
public function _default_view ($value) {
- switch ($value):
- case FreshRSS_Entry::STATE_ALL:
- // left blank on purpose
- case FreshRSS_Entry::STATE_NOT_READ:
- // left blank on purpose
- case FreshRSS_Entry::STATE_NOT_READ_STRICT:
- $this->data['default_view'] = $value;
- break;
- default:
- $this->data['default_view'] = FreshRSS_Entry::STATE_ALL;
- break;
- endswitch;
+ switch ($value) {
+ case FreshRSS_Entry::STATE_ALL:
+ // left blank on purpose
+ case FreshRSS_Entry::STATE_NOT_READ:
+ // left blank on purpose
+ case FreshRSS_Entry::STATE_NOT_READ_STRICT:
+ $this->data['default_view'] = $value;
+ break;
+ default:
+ $this->data['default_view'] = FreshRSS_Entry::STATE_ALL;
+ break;
+ }
}
public function _display_posts ($value) {
$this->data['display_posts'] = ((bool)$value) && $value !== 'no';