Ignore:
Timestamp:
Mar 16, 2007, 7:49:19 PM (17 years ago)
Author:
rub
Message:

Add the last (before 1.8) tabsheet on administration menu (Waiting elements).
Small change way mail function.

File:
1 edited

Legend:

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

    r1914 r1915  
    328328 *   - email_format: mail format
    329329 *   - keyargs_subject: mail subject on l10n_args format
     330 *   - dirname: short name of directory including template
    330331 *   - tpl_shortname: short template name without extension
    331332 *   - assign_vars: array used to assign_vars to mail template
     
    336337function pwg_mail_group(
    337338  $group_id, $email_format, $keyargs_subject,
    338   $tpl_shortname, $assign_vars = array(), $language_selected = '')
     339  $dirname, $tpl_shortname,
     340  $assign_vars = array(), $language_selected = '')
    339341{
    340342  global $conf;
     
    408410        $mail_template = get_mail_template($email_format, $elem);
    409411        $mail_template->set_filename($tpl_shortname,
    410           (IN_ADMIN ? 'admin/' : '').$tpl_shortname.'.tpl');
     412          (empty($dirname) ? '' : $dirname.'/').$tpl_shortname.'.tpl');
    411413        $mail_template->assign_vars($assign_vars);
    412414
Note: See TracChangeset for help on using the changeset viewer.