bbcode: fixed newline in scaled imgs (before <a )

This commit is contained in:
real_nowhereman 2007-11-06 19:21:28 +00:00
parent 1ebd86cfbd
commit d021b5f625

View File

@ -246,8 +246,8 @@ function do_bbcode_img ($action, $attributes, $content, $params, $node_object) {
$popup = apply_filters('bbcode_img_popup', $popup, $absolutepath);
$popup_start = ($attributes['popup']=='true') ? '
<a title="View image \''.$title.'\'" href="'. /* BLOG_BASEURL . $actualpath.*/
$popup_start = ($attributes['popup']=='true') ?
'<a title="View image \''.$title.'\'" href="'. /* BLOG_BASEURL . $actualpath.*/
$absolutepath .
'"'.$popup.'>' : '';
$popup_end = ($attributes['popup']=='true') ? '</a>' : '';
@ -267,7 +267,7 @@ function do_bbcode_img ($action, $attributes, $content, $params, $node_object) {
return $popup_start.'<img src="' .
($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;
}