Diff for /parser3/src/classes/image.C between versions 1.4 and 1.5

version 1.4, 2001/04/10 14:18:28 version 1.5, 2001/04/11 07:44:12
Line 303  static void _html(Request& r, const Stri Line 303  static void _html(Request& r, const Stri
         tag << "<img";          tag << "<img";
   
         Hash& fields=static_cast<VImage *>(r.self)->fields();          Hash& fields=static_cast<VImage *>(r.self)->fields();
         Hash *temporary=0;          Hash *attribs=0;
   
         if(params->size()) {          if(params->size())
                 if(temporary=static_cast<Value *>(params->get(0))->get_hash()) {                  if(attribs=static_cast<Value *>(params->get(0))->get_hash()) {
                         Attrib_info attrib_info={&tag, 0};                          Attrib_info attrib_info={&tag, 0};
                         temporary->for_each(append_attrib_pair, &attrib_info);                          attribs->for_each(append_attrib_pair, &attrib_info);
                 } else                  } else
                         PTHROW(0, 0,                          PTHROW(0, 0,
                                 &method_name,                                  &method_name,
                                 "parameter must be hash");                                  "attributes must be must be hash");
         }  
   
         Attrib_info attrib_info={&tag, temporary};          Attrib_info attrib_info={&tag, attribs};
         fields.for_each(append_attrib_pair, &attrib_info);          fields.for_each(append_attrib_pair, &attrib_info);
         tag << ">";          tag << ">";
         r.write_pass_lang(tag);          r.write_pass_lang(tag);

Removed from v.1.4  
changed lines
  Added in v.1.5


E-mail: