comment MDL-27024 Fixed bug that arose when a comment section didnt require pagination but the JS still looked for pageination HTML in the page

This commit is contained in:
Sam Hemelryk
2011-04-11 10:43:21 +08:00
parent 59137c2c5b
commit 3962c89bbf
+1 -1
View File
@@ -543,7 +543,7 @@ EOD;
$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