* @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
} // -X2C Class :Image
-?>
\ No newline at end of file
+?>