Changeset 2262


Ignore:
Timestamp:
Mar 7, 2008, 7:42:43 AM (16 years ago)
Author:
rub
Message:

Fix bug of svn:2249
Fix quicky mail error with smarty

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/notification_by_mail.php

    r2249 r2262  
    691691    $data_users = get_user_notifications('subscribe');
    692692   
    693     $opt_true=array();
    694     $opt_true_selected=array();
    695     $opt_false=array();
    696     $opt_false_selected=array();
     693    $opt_true = array();
     694    $opt_true_selected = array();
     695    $opt_false = array();
     696    $opt_false_selected = array();
    697697    foreach ($data_users as $nbm_user)
    698698    {
    699       if ( get_boolean($nbm_user['enabled']) )
     699      if (get_boolean($nbm_user['enabled']))
    700700      {
    701701        $opt_true[ $nbm_user['check_key'] ] = $nbm_user['username'].'['.get_email_address_as_display_text($nbm_user['mail_address']).']';
    702         if ((isset($_POST['falsify']) and isset($_POST['cat_true']) and in_array($nbm_user['check_key'], $_POST['cat_true'])) )
     702        if ((isset($_POST['falsify']) and isset($_POST['cat_true']) and in_array($nbm_user['check_key'], $_POST['cat_true'])))
    703703        {
    704704          $opt_true_selected[] = $nbm_user['check_key'];
     
    718718        'category_option_true_selected' => $opt_true_selected,
    719719        'category_option_false'         => $opt_false,
    720         'category_option_true'          => $opt_false_selected,
     720        'category_option_true_selected' => $opt_false_selected,
    721721        )
    722722    );
  • trunk/include/functions_mail.inc.php

    r2168 r2262  
    33// | PhpWebGallery - a PHP based picture gallery                           |
    44// | Copyright (C) 2002-2003 Pierrick LE GALL - pierrick@phpwebgallery.net |
    5 // | Copyright (C) 2003-2007 PhpWebGallery Team - http://phpwebgallery.net |
     5// | Copyright (C) 2003-2008 PhpWebGallery Team - http://phpwebgallery.net |
    66// +-----------------------------------------------------------------------+
    77// | file          : $Id$
     
    176176
    177177  $mail_template = new Template(PHPWG_ROOT_PATH.'template/'.$args['template'], $args['theme']);
    178   $mail_template->set_rootdir(PHPWG_ROOT_PATH.'template/'.$args['template'].'/mail/'.$email_format);
    179 
     178  $mail_template->_old->set_rootdir(PHPWG_ROOT_PATH.'template/'.$args['template'].'/mail/'.$email_format);
     179  $mail_template->smarty->template_dir = PHPWG_ROOT_PATH.'template/'.$args['template'].'/mail/'.$email_format;
     180 
    180181  return $mail_template;
    181182}
Note: See TracChangeset for help on using the changeset viewer.