Fix #1190 make comment page count configurable

This commit is contained in:
Kijin Sung 2019-09-13 20:11:32 +09:00
parent 9b64b0f925
commit 73c5b6d84b
5 changed files with 25 additions and 8 deletions

View file

@ -1742,6 +1742,11 @@ class commentController extends comment
{
$comment_config->comment_count = 50;
}
$comment_config->comment_page_count = (int) Context::get('comment_page_count');
if(!$comment_config->comment_page_count)
{
$comment_config->comment_page_count = 10;
}
$comment_config->use_vote_up = Context::get('use_vote_up');
if(!$comment_config->use_vote_up)