Ignore:
Timestamp:
Mar 15, 2012, 12:18:01 PM (12 years ago)
Author:
cljosse
Message:

[extensions] mail_supervisorcompatibility with PHP 5.4, jquery 1.7.1

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/Mail_supervisor/mail_super.inc.php

    r12394 r13572  
    4444  $themeconf=$template->get_template_vars('themeconf');
    4545  $theme=$themeconf['id'];
    46   if (file_exists ( 'admin/themes/clear/icon/help.png')) $icon_path = 'themes/default/icon/help.png';
     46  if (file_exists ( 'admin/themes/clear/icon/help.png')) $icon_path = 'admin/themes/clear/icon/help.png';
    4747  else  $icon_path =  "admin/template/goto/theme/clear/icon/help.png";
    4848  if (PHPWG_VERSION < 2.2 ) {
     
    241241        //====== par defaut =======================
    242242         $new_val=false;
     243
     244  if (empty($def_para))
     245$def_para = (object) '';
     246
    243247        $def_para->check_mailto="on";
    244248        $def_para->check_header_carbon="on";
     
    249253        $def_para->no_connect="on"; // empeche l'ip de se connecter au site.
    250254        $def_para->set_auto="on";       // Test a l'ouverture et enregistrement
    251         $def_para->ip="127.0.0.1";      // derniére adresse IP
     255        $def_para->ip="127.0.0.1";      // derniere adresse IP
    252256        $def_para->set_id="on";       // enregistrment nouvel
    253257        $def_para->debug_mail="off";       // debogage
     
    279283  }
    280284  //==========================================================
     285
    281286function sauve_options(){
    282287  global $options,$infos_message,$conf,$mails_options  ;
    283288  $infos_message .=l10n("save_config")."<br>";
    284   $mails_parametres=mail_supervisor::Set_Options($mails_options,"mail_superv");
     289       if (empty($mail_supervisor))  {
     290      $mail_supervisor = new mail_supervisor();
     291      }
     292  $mails_parametres= $mail_supervisor->Set_Options($mails_options,"mail_superv");
    285293
    286294 if ( isset($mails_parametres) )
Note: See TracChangeset for help on using the changeset viewer.