Skip to content

Commit

Permalink
Fixed pagination on category list
Browse files Browse the repository at this point in the history
  • Loading branch information
coolbung committed Nov 1, 2014
1 parent 3563298 commit 72c21f5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions easyblog/easyblog/category.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,7 @@ public function get() {
EasyBlogHelper::accessNestedCategoriesId($category, $catIds);

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

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

0 comments on commit 72c21f5

Please sign in to comment.