X-Git-Url: https://git.llucax.com/mecon/meconlib.git/blobdiff_plain/574e8c5b12ce49296b665509627a84bc1d1a0604..2828826fd20134db9bd8e67e2c3ce883b5b97146:/pear_lib_tmp/HTML/Image.php?ds=sidebyside 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 +?>