diff options
| author | 2016-10-15 14:58:40 +0200 | |
|---|---|---|
| committer | 2016-10-15 14:58:40 +0200 | |
| commit | 56f66f4b6168276ca449d18a440b6958c6817088 (patch) | |
| tree | 4e4a948929136532073019a0c03a85eb6605768d /app/Controllers/indexController.php | |
| parent | 98a038926232511fdabc1cfaf5dfb220508047aa (diff) | |
Remove superflous category request
A category request was systematically done, although it is not always
needed.
Diffstat (limited to 'app/Controllers/indexController.php')
| -rwxr-xr-x | app/Controllers/indexController.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/app/Controllers/indexController.php b/app/Controllers/indexController.php index 4e2717920..5ca147ff3 100755 --- a/app/Controllers/indexController.php +++ b/app/Controllers/indexController.php @@ -159,6 +159,11 @@ class FreshRSS_index_Controller extends Minz_ActionController { * - hours (default: 0) */ private function updateContext() { + if (empty(FreshRSS_Context::$categories)) { + $catDAO = new FreshRSS_CategoryDAO(); + FreshRSS_Context::$categories = $catDAO->listCategories(); + } + // Update number of read / unread variables. $entryDAO = FreshRSS_Factory::createEntryDao(); FreshRSS_Context::$total_starred = $entryDAO->countUnreadReadFavorites(); |
