aboutsummaryrefslogtreecommitdiff
path: root/app/Models/Configuration.php
diff options
context:
space:
mode:
authorGravatar Alexis Degrugillier <github@ainw.org> 2014-04-13 07:28:41 -0400
committerGravatar Alexis Degrugillier <github@ainw.org> 2014-04-13 07:28:41 -0400
commit86066b1659e33eb5fdfbcae5fb7f0bd93604d442 (patch)
tree9df9b09b6beb785b9f126ac69ec4b0aa01e01f9c /app/Models/Configuration.php
parentd25afa9def1b02b7989b12c861e33da5c90ccba1 (diff)
Add a new status for 'ALL'
I made the conversion in every file I can think of. It should not have any reference to the string 'all' for the state context
Diffstat (limited to 'app/Models/Configuration.php')
-rw-r--r--app/Models/Configuration.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/Models/Configuration.php b/app/Models/Configuration.php
index f9ea47be6..e693542e0 100644
--- a/app/Models/Configuration.php
+++ b/app/Models/Configuration.php
@@ -1,6 +1,7 @@
<?php
class FreshRSS_Configuration {
+ const STATE_ALL = 0;
const STATE_READ = 1;
const STATE_NOT_READ = 2;
const STATE_FAVORITE = 4;
@@ -136,7 +137,7 @@ class FreshRSS_Configuration {
}
}
public function _default_view ($value) {
- $this->data['default_view'] = $value === 'all' ? 'all' : self::STATE_NOT_READ;
+ $this->data['default_view'] = $value === self::STATE_ALL ? self::STATE_ALL : self::STATE_NOT_READ;
}
public function _display_posts ($value) {
$this->data['display_posts'] = ((bool)$value) && $value !== 'no';