Skip to content

Commit

Permalink
adding some code so limit will work in the feeds
Browse files Browse the repository at this point in the history
  • Loading branch information
dogmatic69 committed Jan 19, 2010
1 parent 2e1506e commit d880c16
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions extensions/libs/models/behaviors/feedable.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,10 @@ function _findFeed(&$Model, $state, $query, $results = array()) {
}
$sql .= ' ORDER BY '.implode( ', ', $ordering );
}
if ( isset( $query['limit'] ) ) {
$ordering = array();
$sql .= ' LIMIT '.$query['limit'];
}
$_results = $Model->query( $sql );
//pr( $this->_results );

Expand Down

0 comments on commit d880c16

Please sign in to comment.