Permalink
Browse files

comment MDL-27024 Fixed bug that arose when a comment section didnt r…

…equire pagination but the JS still looked for pageination HTML in the page
  • Loading branch information...
1 parent 93b86f6 commit 1c64a9cd58757dfe2d22fd6c97a200799a5dd4cf Sam Hemelryk committed Mar 30, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 comment/lib.php
View
@@ -543,7 +543,7 @@ public function get_pagination($page = 0) {
$count = $this->count();
$pages = (int)ceil($count/$CFG->commentsperpage);
if ($pages == 1 || $pages == 0) {
- return '';
+ return html_writer::tag('div', '', array('id' => 'comment-pagination-'.$this->cid, 'class' => 'comment-pagination'));
}
if (!empty(self::$nonjs)) {
// used in non-js interface

0 comments on commit 1c64a9c

Please sign in to comment.