- Timestamp:
- May 1, 2012, 2:23:34 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/Comments_Access_Manager/include/functions.inc.php
r14633 r14634 37 37 function CM_CheckComment($comment_action, $comm) 38 38 { 39 global $page, $conf, $user, $template; 40 39 41 load_language('plugin.lang', CM_PATH); 40 global $infos, $conf, $user;41 42 42 43 $conf_CM = unserialize($conf['CommentsManager']); … … 48 49 { 49 50 $comment_action = 'reject'; 50 51 array_push($infos, l10n('CM_Empty Author')); 51 array_push($page['errors'], l10n('CM_Not_Allowed_Author')); 52 52 } 53 53 … … 71 71 { 72 72 $comment_action = 'reject'; // Comment rejected if author is not in the allowed group 73 array_push($ infos, l10n('CM_Not_Allowed_Author'));73 array_push($page['errors'], l10n('CM_Not_Allowed_Author')); 74 74 } 75 75 elseif ((isset($conf_CM[2]) and $conf_CM[2] == 'false') and (isset($conf_CM[4]) and $conf_CM[4] == 'true') and $conf['comments_validation']) // Comments authorized group unset - Auto validation group set … … 89 89 { 90 90 $comment_action = 'reject'; // Comment rejected if author is not in the allowed group 91 array_push($ infos, l10n('CM_Not_Allowed_Author'));91 array_push($page['errors'], l10n('CM_Not_Allowed_Author')); 92 92 } 93 93 elseif (CM_CheckValidGroup($comm['author']) and $conf['comments_validation'])
Note: See TracChangeset
for help on using the changeset viewer.