summaryrefslogtreecommitdiff
path: root/p/api
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 /p/api
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 'p/api')
-rw-r--r--p/api/greader.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/p/api/greader.php b/p/api/greader.php
index 741c4fbd4..9836f2f02 100644
--- a/p/api/greader.php
+++ b/p/api/greader.php
@@ -353,10 +353,10 @@ function streamContents($path, $include_target, $start_time, $count, $order, $ex
switch ($exclude_target) {
case 'user/-/state/com.google/read':
- $state = 'not_read';
+ $state = FreshRSS_Configuration::STATE_NOT_READ;
break;
default:
- $state = 'all';
+ $state = FreshRSS_Configuration::STATE_ALL;
break;
}
@@ -451,10 +451,10 @@ function streamContentsItemsIds($streamId, $start_time, $count, $order, $exclude
switch ($exclude_target) {
case 'user/-/state/com.google/read':
- $state = 'not_read';
+ $state = FreshRSS_Configuration::STATE_NOT_READ;
break;
default:
- $state = 'all';
+ $state = FreshRSS_Configuration::STATE_ALL;
break;
}