huh? was in develop branch but not here?
Signed-off-by: Roland Haeder <roland@mxchange.org>
This commit is contained in:
parent
3d386daf53
commit
78b9cf97e0
1 changed files with 2 additions and 1 deletions
|
@ -307,8 +307,9 @@ function bb_tag_preg_replace($pattern, $replace, $name, $s) {
|
||||||
$start = substr($string, 0, $pos['start']['open']);
|
$start = substr($string, 0, $pos['start']['open']);
|
||||||
$subject = substr($string, $pos['start']['open'], $pos['end']['close'] - $pos['start']['open']);
|
$subject = substr($string, $pos['start']['open'], $pos['end']['close'] - $pos['start']['open']);
|
||||||
$end = substr($string, $pos['end']['close']);
|
$end = substr($string, $pos['end']['close']);
|
||||||
if ($end === false)
|
if ($end === false) {
|
||||||
$end = '';
|
$end = '';
|
||||||
|
}
|
||||||
|
|
||||||
$subject = preg_replace($pattern, $replace, $subject);
|
$subject = preg_replace($pattern, $replace, $subject);
|
||||||
$string = $start . $subject . $end;
|
$string = $start . $subject . $end;
|
||||||
|
|
Loading…
Reference in a new issue