Skip to content

Commit 3563298

Browse files
committed
Fixed pagination on latest blogs
1 parent 1979169 commit 3563298

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

easyblog/easyblog/latest.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,7 @@ public function get() {
4141
} else {
4242

4343
$sorting = $this->plugin->params->get( 'sorting' , 'latest' );
44-
$total = (int) $this->plugin->params->get( 'total' , 20 );
45-
$rows = $model->getBlogsBy( $sorting , '' , $sorting , $total, EBLOG_FILTER_PUBLISHED, $search );
44+
$rows = $model->getBlogsBy( $sorting , '' , $sorting , 0, EBLOG_FILTER_PUBLISHED, $search );
4645

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

0 commit comments

Comments
 (0)