X-Git-Url: https://git.llucax.com/mecon/meconlib.git/blobdiff_plain/574e8c5b12ce49296b665509627a84bc1d1a0604..74a6809a6496f09fbed3cc420d9ad1665f150648:/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..9e03d46 100644 --- a/pear_lib_tmp/HTML/Image.php +++ b/pear_lib_tmp/HTML/Image.php @@ -53,10 +53,14 @@ class HTML_Image extends HTML_Common { * @return void * @access public */ - function HTML_Image($src = '', $alt = '', $attrs = array('border' => 0))// ~X2C + function HTML_Image($src = '', $alt = '', $attrs = array())// ~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 +?>