aboutsummaryrefslogtreecommitdiffstats
path: root/core/include
diff options
context:
space:
mode:
authorThomas Lange <code@nerdmind.de>2021-07-11 19:59:05 +0200
committerThomas Lange <code@nerdmind.de>2021-07-11 19:59:05 +0200
commita4242144eebc101bc1e5ec150a80312e30d0112f (patch)
tree5c41416352f5bc12563122c0cff05fdd6b613b89 /core/include
parent42da9bd4bb6d35706ee5fefd3bac9b60ac5ada34 (diff)
downloadblog-a4242144eebc101bc1e5ec150a80312e30d0112f.tar.gz
blog-a4242144eebc101bc1e5ec150a80312e30d0112f.tar.xz
blog-a4242144eebc101bc1e5ec150a80312e30d0112f.zip
Modify parameter list for getAll method
Diffstat (limited to 'core/include')
-rw-r--r--core/include/category/main.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/include/category/main.php b/core/include/category/main.php
index b1bea72..2e84aa1 100644
--- a/core/include/category/main.php
+++ b/core/include/category/main.php
@@ -90,7 +90,8 @@ if($currentSite < 1 OR ($currentSite > $lastSite AND $lastSite > 0)) {
$posts = $PostRepository->getAll(
['category' => $Category->getID()],
$site_sort,
- ($currentSite-1) * $site_size.','.$site_size
+ $site_size,
+ ($currentSite-1) * $site_size
);
foreach($posts as $Post) {