aboutsummaryrefslogtreecommitdiff
path: root/app/Controllers/indexController.php
diff options
context:
space:
mode:
authorGravatar maTh <math-home@web.de> 2022-02-06 17:29:56 +0100
committerGravatar GitHub <noreply@github.com> 2022-02-06 17:29:56 +0100
commitdfee46792f91cc357f697f35e7429c0c196f6a16 (patch)
treebeffd4906747360905decfa9142a0f63c62c5806 /app/Controllers/indexController.php
parent1c5cf718599f698836fef3f8f88748757a7e85b5 (diff)
Improved: "Pagination" + load more button (#4125)
* Frontend changes done * Load more should work now also without JS * Update template.rtl.css * improved the themes' CSS * Update template.rtl.css * fix CI * CSS prop. order fixed * Rename pagination.phtml to stream-footer.phtml * use the new template name * rename key of i18n * fixed CI, that does not like the white space * rename pagination variable * Update indexController.php
Diffstat (limited to 'app/Controllers/indexController.php')
-rwxr-xr-xapp/Controllers/indexController.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/Controllers/indexController.php b/app/Controllers/indexController.php
index 8ec5bdb27..0fc7bb61a 100755
--- a/app/Controllers/indexController.php
+++ b/app/Controllers/indexController.php
@@ -65,7 +65,7 @@ class FreshRSS_index_Controller extends FreshRSS_ActionController {
$this->view->callbackBeforeEntries = function ($view) {
try {
- FreshRSS_Context::$number++; //+1 for pagination
+ FreshRSS_Context::$number++; //+1 for articles' page
$view->entries = FreshRSS_index_Controller::listEntriesByContext();
FreshRSS_Context::$number--;
ob_start(); //Buffer "one entry at a time"
@@ -77,7 +77,7 @@ class FreshRSS_index_Controller extends FreshRSS_ActionController {
$this->view->callbackBeforePagination = function ($view, $nbEntries, $lastEntry) {
if ($nbEntries >= FreshRSS_Context::$number) {
- //We have enough entries: we discard the last one to use it for the next pagination
+ //We have enough entries: we discard the last one to use it for the next articles' page
ob_clean();
FreshRSS_Context::$next_id = $lastEntry->id();
}