From ad19b6bf2ec9e2974ff8382fabbd209ae1e4eab7 Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Sat, 29 Jun 2019 20:47:38 +0200 Subject: Fix wrong mark-as-read maxId argument (#2431) Fix https://github.com/FreshRSS/FreshRSS/issues/2429 --- app/Controllers/indexController.php | 2 +- app/layout/nav_menu.phtml | 9 ++++++++- app/views/index/global.phtml | 5 ----- app/views/index/normal.phtml | 5 ----- app/views/index/reader.phtml | 5 ----- 5 files changed, 9 insertions(+), 17 deletions(-) (limited to 'app') diff --git a/app/Controllers/indexController.php b/app/Controllers/indexController.php index 824d65815..f536113dd 100755 --- a/app/Controllers/indexController.php +++ b/app/Controllers/indexController.php @@ -54,7 +54,7 @@ class FreshRSS_index_Controller extends Minz_ActionController { } }; - $this->view->callbackBeforeEntries = function ($view) { + $this->view->callbackBeforePagination = function ($view) { try { FreshRSS_Context::$number++; //+1 for pagination $entries = FreshRSS_index_Controller::listEntriesByContext(); diff --git a/app/layout/nav_menu.phtml b/app/layout/nav_menu.phtml index 4d860a54c..af7267bac 100644 --- a/app/layout/nav_menu.phtml +++ b/app/layout/nav_menu.phtml @@ -1,4 +1,11 @@ - +callbackBeforePagination)) { + call_user_func($this->callbackBeforePagination, $this); + } +?>