--- parser3/src/classes/mail.C 2003/03/21 13:42:27 1.88.2.16.2.6 +++ parser3/src/classes/mail.C 2003/03/21 15:36:03 1.88.2.16.2.8 @@ -5,7 +5,7 @@ Author: Alexandr Petrosian (http://paf.design.ru) */ -static const char* IDENT_MAIL_C="$Date: 2003/03/21 13:42:27 $"; +static const char* IDENT_MAIL_C="$Date: 2003/03/21 15:36:03 $"; #include "pa_config_includes.h" #include "pa_vmethod_frame.h" @@ -82,7 +82,7 @@ static void sendmail(Request& r, const S // $MAIN:MAIL.SMTP[mail.yourdomain.ru[:port]] if(vmail_conf && (server_port=vmail_conf->get_hash(method_name)->get(String* (new String("SMTP"))))) { - const char* server=server_port->as_string()->cstr(); + const char* server=server_port->as_string().cstr(); const char* port=rsplit(server, ':'); if(!port) port="25"; @@ -216,7 +216,7 @@ void MMail::configure_user(Request& r) { // $MAIN:MAIL[$SMTP[mail.design.ru]] if(Value* mail_element=r.main_class->get_element(mail_name, *r.main_class, false)) - if(mail_element->get_hash(0)) + if(mail_element->get_hash()) r.classes_conf.put(name(), mail_element); else if( !mail_element->is_string() )