Changeset 4508 for branches/2.0/include/functions_comment.inc.php
- Timestamp:
- Dec 17, 2009, 11:47:31 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.0/include/functions_comment.inc.php
r3147 r4508 167 167 $comm['id'] = mysql_insert_id(); 168 168 169 if 170 ( 171 ($comment_action=='validate' and $conf['email_admin_on_comment']) 172 or 173 ($comment_action!='validate' and $conf['email_admin_on_comment_validation']) 174 ) 169 if ($conf['email_admin_on_comment'] 170 or ($conf['email_admin_on_comment_validation'] and 'moderate' == $comment_action)) 175 171 { 176 172 include_once(PHPWG_ROOT_PATH.'include/functions_mail.inc.php'); 177 173 178 $del_url = 179 get_absolute_root_url().'comments.php?delete='.$comm['id']; 174 $comment_url = get_absolute_root_url().'comments.php?comment_id='.$comm['id']; 180 175 181 176 $keyargs_content = array … … 184 179 get_l10n_args('Comment: %s', $comm['content']), 185 180 get_l10n_args('', ''), 186 get_l10n_args(' Delete: %s', $del_url)181 get_l10n_args('Manage this user comment: %s', $comment_url) 187 182 ); 188 183 189 if ( $comment_action!='validate')184 if ('moderate' == $comment_action) 190 185 { 191 $keyargs_content[] = 192 get_l10n_args('', ''); 193 $keyargs_content[] = 194 get_l10n_args('Validate: %s', 195 get_absolute_root_url().'comments.php?validate='.$comm['id']); 186 $keyargs_content[] = get_l10n_args('', ''); 187 $keyargs_content[] = get_l10n_args('(!) This comment requires validation', ''); 196 188 } 197 189
Note: See TracChangeset
for help on using the changeset viewer.