Changeset 25360 for trunk/include/functions_comment.inc.php
- Timestamp:
- Nov 6, 2013, 6:57:53 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/functions_comment.inc.php
r25357 r25360 233 233 $comment_url = get_absolute_root_url().'comments.php?comment_id='.$comm['id']; 234 234 235 $ content = array(236 l10n('Author: %s', stripslashes($comm['author']) ),237 l10n('Email: %s', stripslashes($comm['email']) ),238 l10n('Comment: %s', stripslashes($comm['content']) ),239 '',240 l10n('Manage this user comment: %s', $comment_url),235 $keyargs_content = array( 236 get_l10n_args('Author: %s', stripslashes($comm['author']) ), 237 get_l10n_args('Email: %s', stripslashes($comm['email']) ), 238 get_l10n_args('Comment: %s', stripslashes($comm['content']) ), 239 get_l10n_args(''), 240 get_l10n_args('Manage this user comment: %s', $comment_url), 241 241 ); 242 242 243 243 if ('moderate' == $comment_action) 244 244 { 245 $ content[] = l10n('(!) This comment requires validation');245 $keyargs_content[] = get_l10n_args('(!) This comment requires validation'); 246 246 } 247 247 248 248 pwg_mail_notification_admins( 249 l10n('Comment by %s', stripslashes($comm['author']) ),250 implode("\n", $content)249 get_l10n_args('Comment by %s', stripslashes($comm['author']) ), 250 $keyargs_content 251 251 ); 252 252 } … … 374 374 $comment_url = get_absolute_root_url().'comments.php?comment_id='.$comment['comment_id']; 375 375 376 $ content = array(377 l10n('Author: %s', stripslashes($GLOBALS['user']['username']) ),378 l10n('Comment: %s', stripslashes($comment['content']) ),379 '',380 l10n('Manage this user comment: %s', $comment_url),381 l10n('(!) This comment requires validation'),376 $keyargs_content = array( 377 get_l10n_args('Author: %s', stripslashes($GLOBALS['user']['username']) ), 378 get_l10n_args('Comment: %s', stripslashes($comment['content']) ), 379 get_l10n_args(''), 380 get_l10n_args('Manage this user comment: %s', $comment_url), 381 get_l10n_args('(!) This comment requires validation'), 382 382 ); 383 383 384 384 pwg_mail_notification_admins( 385 l10n('Comment by %s', stripslashes($GLOBALS['user']['username']) ),386 implode("\n", $content)385 get_l10n_args('Comment by %s', stripslashes($GLOBALS['user']['username']) ), 386 $keyargs_content 387 387 ); 388 388 } … … 411 411 include_once(PHPWG_ROOT_PATH.'include/functions_mail.inc.php'); 412 412 413 $ content = array(414 l10n('Author: %s', $comment['author']),413 $keyargs_content = array( 414 get_l10n_args('Author: %s', $comment['author']), 415 415 ); 416 416 417 417 if ($action=='delete') 418 418 { 419 $ content[] = l10n('This author removed the comment with id %d', $comment['comment_id']);420 } 421 else 422 { 423 $ content[] = l10n('This author modified following comment:');424 $ content[] = l10n('Comment: %s', $comment['content']);419 $keyargs_content[] = get_l10n_args('This author removed the comment with id %d', $comment['comment_id']); 420 } 421 else 422 { 423 $keyargs_content[] = get_l10n_args('This author modified following comment:'); 424 $keyargs_content[] = get_l10n_args('Comment: %s', $comment['content']); 425 425 } 426 426 427 427 pwg_mail_notification_admins( 428 l10n('Comment by %s', $comment['author']),429 implode("\n", $content) 430 428 get_l10n_args('Comment by %s', $comment['author']), 429 $keyargs_content 430 ); 431 431 } 432 432
Note: See TracChangeset
for help on using the changeset viewer.