aboutsummaryrefslogtreecommitdiff
path: root/app/Models/Context.php
diff options
context:
space:
mode:
authorGravatar Marien Fressinaud <dev@marienfressinaud.fr> 2014-10-22 13:35:30 +0200
committerGravatar Marien Fressinaud <dev@marienfressinaud.fr> 2014-10-22 13:35:30 +0200
commitb446a510ebacddd1437d907e795c83b3d05a9b98 (patch)
treece5f131b80b1ed69b969e1d0451264c3a95f06cb /app/Models/Context.php
parentfcae4157539306e90299e7f0e90740320a2833d7 (diff)
Finish to update context object
See See https://github.com/marienfressinaud/FreshRSS/issues/634
Diffstat (limited to 'app/Models/Context.php')
-rw-r--r--app/Models/Context.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/app/Models/Context.php b/app/Models/Context.php
index 7138fd638..31ac60207 100644
--- a/app/Models/Context.php
+++ b/app/Models/Context.php
@@ -26,6 +26,9 @@ class FreshRSS_Context {
);
public static $get_unread = 0;
public static $order = 'DESC';
+ public static $number = 0;
+ public static $search = '';
+ public static $first_id = 0;
public static function init() {
// Init configuration.
@@ -80,6 +83,9 @@ class FreshRSS_Context {
self::$current_get['starred'] = true;
self::$name = _t('your_favorites');
self::$get_unread = self::$total_starred['unread'];
+
+ // Update state if favorite is not yet enabled.
+ self::$state = self::$state | FreshRSS_Entry::STATE_FAVORITE;
break;
case 'f':
self::$current_get['feed'] = $id;