mirror of
https://github.com/Oreolek/ifhub.club.git
synced 2024-06-26 03:30:48 +03:00
fix pagination #867
This commit is contained in:
parent
006e246640
commit
69a5101ef5
|
@ -833,11 +833,6 @@ class ActionBlog extends Action
|
||||||
if (Config::Get('module.comment.use_nested') and Config::Get('module.comment.nested_per_page')) {
|
if (Config::Get('module.comment.use_nested') and Config::Get('module.comment.nested_per_page')) {
|
||||||
$aPaging = $this->Viewer_MakePaging($aReturn['count'], $iPage,
|
$aPaging = $this->Viewer_MakePaging($aReturn['count'], $iPage,
|
||||||
Config::Get('module.comment.nested_per_page'), Config::Get('pagination.pages.count'), '');
|
Config::Get('module.comment.nested_per_page'), Config::Get('pagination.pages.count'), '');
|
||||||
if (!Config::Get('module.comment.nested_page_reverse') and $aPaging) {
|
|
||||||
// переворачиваем страницы в обратном порядке
|
|
||||||
$aPaging['aPagesLeft'] = array_reverse($aPaging['aPagesLeft']);
|
|
||||||
$aPaging['aPagesRight'] = array_reverse($aPaging['aPagesRight']);
|
|
||||||
}
|
|
||||||
$this->Viewer_Assign('pagingComments', $aPaging);
|
$this->Viewer_Assign('pagingComments', $aPaging);
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
Subproject commit 8f08d14613dc258ffc8bb34e355794a412f87ba4
|
Subproject commit c3b04d7992dc227971c8c0f9e1a46f21f3860c41
|
Loading…
Reference in a new issue