Ignore:
Timestamp:
Nov 6, 2013, 6:57:53 PM (10 years ago)
Author:
mistic100
Message:

feature 2995: New email template
restore get_l10n_args removed at r25357
apply changes to NBM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/functions_comment.inc.php

    r25357 r25360  
    233233      $comment_url = get_absolute_root_url().'comments.php?comment_id='.$comm['id'];
    234234
    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),
    241241      );
    242242
    243243      if ('moderate' == $comment_action)
    244244      {
    245         $content[] = l10n('(!) This comment requires validation');
     245        $keyargs_content[] = get_l10n_args('(!) This comment requires validation');
    246246      }
    247247
    248248      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
    251251      );
    252252    }
     
    374374      $comment_url = get_absolute_root_url().'comments.php?comment_id='.$comment['comment_id'];
    375375
    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'),
    382382      );
    383383
    384384      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
    387387      );
    388388    }
     
    411411  include_once(PHPWG_ROOT_PATH.'include/functions_mail.inc.php');
    412412
    413   $content = array(
    414     l10n('Author: %s', $comment['author']),
     413  $keyargs_content = array(
     414    get_l10n_args('Author: %s', $comment['author']),
    415415    );
    416416
    417417  if ($action=='delete')
    418418  {
    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']);
    425425  }
    426426
    427427  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    );
    431431}
    432432
Note: See TracChangeset for help on using the changeset viewer.