Skip to content

Commit 72c21f5

Browse files
committed
Fixed pagination on category list
1 parent 3563298 commit 72c21f5

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

easyblog/easyblog/category.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,7 @@ public function get() {
5151
EasyBlogHelper::accessNestedCategoriesId($category, $catIds);
5252

5353
$sorting = $this->plugin->params->get( 'sorting' , 'latest' );
54-
$total = (int) $this->plugin->params->get( 'total' , 20 );
55-
$rows = $model->getBlogsBy( 'category' , $catIds , $sorting , $total, EBLOG_FILTER_PUBLISHED, $search );
54+
$rows = $model->getBlogsBy( 'category' , $catIds , $sorting , 0, EBLOG_FILTER_PUBLISHED, $search );
5655

5756
foreach ($rows as $k => $v) {
5857
$item = EasyBlogHelper::getHelper( 'SimpleSchema' )->mapPost($v, '', 100, array('text'));

0 commit comments

Comments
 (0)