diff options
author | Maurício Meneghini Fauth <mauricio@fauth.dev> | 2022-01-27 22:53:51 +0300 |
---|---|---|
committer | Maurício Meneghini Fauth <mauricio@fauth.dev> | 2022-01-27 22:53:51 +0300 |
commit | 8258e1f45e8fae5da8dadb4174f5238145f6de30 (patch) | |
tree | a22b331d32900f0caaae42aa0357c87370c92a83 /libraries | |
parent | 014f7047e723237d5315aa5652943890ee1edbc4 (diff) |
Fix broken pagination links in the navigation sidebar
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
Diffstat (limited to 'libraries')
-rw-r--r-- | libraries/classes/Util.php | 24 |
1 files changed, 14 insertions, 10 deletions
diff --git a/libraries/classes/Util.php b/libraries/classes/Util.php index b624c6962c..1cea07a50c 100644 --- a/libraries/classes/Util.php +++ b/libraries/classes/Util.php @@ -2347,13 +2347,15 @@ class Util $_url_params[$name] = 0; $list_navigator_html .= '<a' . $class . $title1 . ' href="' . $script - . Url::getCommon($_url_params) . '">' . $caption1 - . '</a>'; + . '" data-post="' + . Url::getCommon($_url_params, '', false) + . '">' . $caption1 . '</a>'; $_url_params[$name] = $pos - $max_count; - $list_navigator_html .= ' <a' . $class . $title2 - . ' href="' . $script . Url::getCommon($_url_params) . '">' - . $caption2 . '</a>'; + $list_navigator_html .= ' <a' . $class . $title2 . ' href="' . $script + . '" data-post="' + . Url::getCommon($_url_params, '', false) + . '">' . $caption2 . '</a>'; } $list_navigator_html .= '<form action="' . basename($script) @@ -2386,17 +2388,19 @@ class Util $_url_params[$name] = $pos + $max_count; $list_navigator_html .= '<a' . $class . $title3 . ' href="' . $script - . Url::getCommon($_url_params) . '" >' . $caption3 - . '</a>'; + . '" data-post="' + . Url::getCommon($_url_params, '', false) + . '" >' . $caption3 . '</a>'; $_url_params[$name] = floor($count / $max_count) * $max_count; if ($_url_params[$name] == $count) { $_url_params[$name] = $count - $max_count; } - $list_navigator_html .= ' <a' . $class . $title4 - . ' href="' . $script . Url::getCommon($_url_params) . '" >' - . $caption4 . '</a>'; + $list_navigator_html .= ' <a' . $class . $title4 . ' href="' . $script + . '" data-post="' + . Url::getCommon($_url_params, '', false) + . '" >' . $caption4 . '</a>'; } $list_navigator_html .= '</div>' . "\n"; } |