Merge pull request !60 from Hmily_LCG/fix—yanzhengma

This commit is contained in:
Hmily_LCG 2017-03-08 15:28:34 +08:00 committed by Discuz!
commit 6385646f62
1 changed files with 4 additions and 0 deletions

View File

@ -16,6 +16,7 @@ cknewuser();
require_once libfile('class/credit');
require_once libfile('function/post');
require_once libfile('function/forumlist');
$pid = intval(getgpc('pid'));
@ -109,6 +110,9 @@ if($_GET['action'] == 'edit' || $_GET['action'] == 'reply') {
if($thread['closed'] == 1 && !$_G['forum']['ismoderator']) {
showmessage('post_thread_closed');
}
if(!$thread['isgroup'] && $post_autoclose = checkautoclose($thread)) {
showmessage($post_autoclose, '', array('autoclose' => $_G['forum']['autoclose']));
}
}
if($_G['forum']['status'] == 3) {