bbcode: fixed newline in scaled imgs (before <a )
This commit is contained in:
parent
1ebd86cfbd
commit
d021b5f625
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user