Skip to content

Commit ab9942b

Browse files
committed
修复:自定义分页时分页补全异常
1 parent 0377e7f commit ab9942b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

app/Constant/AppConstant.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ class AppConstant
66
{
77
const APP = 'blog';
88
const APP_NAME = 'ModStartBlog';
9-
const VERSION = '8.4.0';
9+
const VERSION = '8.5.0';
1010
}

vendor/modstart/modstart/src/Core/Util/PageHtmlUtil.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ public static function render($total, $pageSize, $currentPage, $url = '/url/for/
8787
if ($currentPage > 1) {
8888
$html[] = sprintf($template['prev'], str_replace('{page}', ($currentPage - 1), $url));
8989
} else {
90-
if ($template['prevDisabled']) {
90+
if (!empty($template['prevDisabled'])) {
9191
$html[] = $template['prevDisabled'];
9292
}
9393
}
@@ -124,7 +124,7 @@ public static function render($total, $pageSize, $currentPage, $url = '/url/for/
124124
if ($currentPage < $totalPage) {
125125
$html[] = sprintf($template['next'], str_replace('{page}', ($currentPage + 1), $url));
126126
} else {
127-
if ($template['nextDisabled']) {
127+
if (!empty($template['nextDisabled'])) {
128128
$html[] = $template['nextDisabled'];
129129
}
130130
}

0 commit comments

Comments
 (0)