fixed in bbcode alt text for images

This commit is contained in:
real_nowhereman 2007-10-30 12:25:26 +00:00
parent 2d662eca1c
commit c2cacb1183

View File

@ -267,7 +267,7 @@ function do_bbcode_img ($action, $attributes, $content, $params, $node_object) {
return $popup_start.'<img src="' . return $popup_start.'<img src="' .
($thumbpath ? (BLOG_BASEURL . $thumbpath) : ($absolutepath)). // $attributes['default']) ($thumbpath ? (BLOG_BASEURL . $thumbpath) : ($absolutepath)). // $attributes['default'])
'" alt="'.$alt. ($popup_start? '' : '" title="'.$title.'" ' ). '" alt="'.$alt. '" '. ($popup_start? '' : '" title="'.$title.'" ' ).
$float.$img_width.$img_height.' />'.$popup_end; $float.$img_width.$img_height.' />'.$popup_end;
} }
@ -748,4 +748,4 @@ if (BBCODE_ENABLE_COMMENTS) {
add_filter('comment_text', 'plugin_bbcode_comment', 1); add_filter('comment_text', 'plugin_bbcode_comment', 1);
} }
?> ?>