X-Git-Url: https://git.llucax.com/mecon/meconlib.git/blobdiff_plain/574e8c5b12ce49296b665509627a84bc1d1a0604..93e324618014f9fa9279e141d39a7f44b091de9e:/pear_lib_tmp/HTML/Image.php diff --git a/pear_lib_tmp/HTML/Image.php b/pear_lib_tmp/HTML/Image.php index 2a13944..628b952 100644 --- a/pear_lib_tmp/HTML/Image.php +++ b/pear_lib_tmp/HTML/Image.php @@ -55,8 +55,12 @@ class HTML_Image extends HTML_Common { */ function HTML_Image($src = '', $alt = '', $attrs = array('border' => 0))// ~X2C { - $attrs['src'] = $src; - $attrs['alt'] = $alt; + if (is_array($attrs)) { + $attrs['src'] = $src; + $attrs['alt'] = $alt; + } else { + $attrs .= " src=$src alt=$alt"; + } parent::HTML_Common($attrs); } // -X2C @@ -136,4 +140,4 @@ class HTML_Image extends HTML_Common { } // -X2C Class :Image -?> \ No newline at end of file +?>