mirror of
https://github.com/e107inc/e107.git
synced 2025-08-21 21:57:34 +02:00
Mostly some LANs relating to 'comments' to synchronize with v1. USERJOINED constant added to sync with v1 also.
This commit is contained in:
@@ -533,6 +533,17 @@ class comment
|
||||
return "Update Failed"; // trigger ajax error message.
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
function moderateComment($var)
|
||||
{
|
||||
if ($var == e_UC_MEMBER) // different behavior to check_class();
|
||||
{
|
||||
return (USER == TRUE && ADMIN == FALSE) ? TRUE : FALSE;
|
||||
}
|
||||
|
||||
return check_class($var);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -650,7 +661,7 @@ class comment
|
||||
'comment_author_email' => $tp->toDB($cuser_mail),
|
||||
'comment_datestamp' => $_t,
|
||||
'comment_comment' => $comment,
|
||||
'comment_blocked' => (check_class($pref['comments_moderate']) ? 2 : 0),
|
||||
'comment_blocked' => ($this->moderateComment($pref['comments_moderate']) ? 2 : 0),
|
||||
'comment_ip' => $ip,
|
||||
'comment_type' => $tp->toDB($type, true),
|
||||
'comment_lock' => 0 //Not locked by default
|
||||
|
Reference in New Issue
Block a user