Issue 34: Allow comments for post

This issue was for textyle but we observed that there was an error on updateDocument regarding commentStatus

git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@10025 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
dragan-dan 2012-01-12 15:56:22 +00:00
parent 8665a2a60a
commit de2991fef6

View file

@ -295,6 +295,7 @@ class documentController extends document {
$obj->ipaddress = $source_obj->get('ipaddress');
}
// List variables
if($obj->comment_status) $obj->commentStatus = $obj->comment_status;
if(!$obj->commentStatus) $obj->commentStatus = 'DENY';
if($obj->commentStatus == 'DENY') $this->_checkCommentStatusForOldVersion($obj);
if($obj->allow_trackback!='Y') $obj->allow_trackback = 'N';