use the param

This commit is contained in:
Shish 2012-02-02 05:24:06 +00:00
parent d5527d6dc8
commit b3d5878ce8

View File

@ -297,7 +297,7 @@ class CommentList extends SimpleExtension {
}
// }}}
// get comments {{{
private function get_recent_comments() {
private function get_recent_comments($count) {
global $config;
global $database;
$rows = $database->get_all("
@ -310,7 +310,7 @@ class CommentList extends SimpleExtension {
LEFT JOIN users ON comments.owner_id=users.id
ORDER BY comments.id DESC
LIMIT :limit
", array("limit"=>$config->get_int('comment_count')));
", array("limit"=>$count));
$comments = array();
foreach($rows as $row) {
$comments[] = new Comment($row);