diff options
| author | 2014-10-22 20:05:00 +0200 | |
|---|---|---|
| committer | 2014-10-22 20:05:00 +0200 | |
| commit | 1efbf6fb86dfe4ff549ce1b7884db17dfbf5554f (patch) | |
| tree | ffb3e5810320dbc0f785fcf9e1d5febf5bbc7fa8 /app/Controllers/indexController.php | |
| parent | db1ad1de233ac7a0e0674c6e64a6a01f3d0e8fbe (diff) | |
Add comments to Context object.
See https://github.com/marienfressinaud/FreshRSS/issues/634
Diffstat (limited to 'app/Controllers/indexController.php')
| -rwxr-xr-x | app/Controllers/indexController.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/app/Controllers/indexController.php b/app/Controllers/indexController.php index 80675b3a6..ed5b58b45 100755 --- a/app/Controllers/indexController.php +++ b/app/Controllers/indexController.php @@ -137,6 +137,13 @@ class FreshRSS_index_Controller extends Minz_ActionController { * - next (default: empty string) */ private function updateContext() { + // Update number of read / unread variables. + $entryDAO = FreshRSS_Factory::createEntryDao(); + FreshRSS_Context::$total_starred = $entryDAO->countUnreadReadFavorites(); + FreshRSS_Context::$total_unread = FreshRSS_CategoryDAO::CountUnreads( + FreshRSS_Context::$categories, 1 + ); + FreshRSS_Context::_get(Minz_Request::param('get', 'a')); FreshRSS_Context::$state = Minz_Request::param( |
