From b446a510ebacddd1437d907e795c83b3d05a9b98 Mon Sep 17 00:00:00 2001 From: Marien Fressinaud Date: Wed, 22 Oct 2014 13:35:30 +0200 Subject: Finish to update context object See See https://github.com/marienfressinaud/FreshRSS/issues/634 --- app/Models/Context.php | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'app/Models/Context.php') 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; -- cgit v1.2.3