diff options
| author | 2014-10-22 13:35:30 +0200 | |
|---|---|---|
| committer | 2014-10-22 13:35:30 +0200 | |
| commit | b446a510ebacddd1437d907e795c83b3d05a9b98 (patch) | |
| tree | ce5f131b80b1ed69b969e1d0451264c3a95f06cb /app/Models/Context.php | |
| parent | fcae4157539306e90299e7f0e90740320a2833d7 (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.php | 6 |
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; |
