mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-04 18:34:27 +02:00
fixed handling of '$'-signs in trimwhitespace outputfilter (messju)
This commit is contained in:
1
NEWS
1
NEWS
@@ -1,3 +1,4 @@
|
|||||||
|
- fixed handling of '$'-signs in trimwhitespace outputfilter (messju)
|
||||||
- fix bug that makes config files recompile every time
|
- fix bug that makes config files recompile every time
|
||||||
(Nagger, Monte)
|
(Nagger, Monte)
|
||||||
- add dpi functionality to html_image, change "name"
|
- add dpi functionality to html_image, change "name"
|
||||||
|
@@ -44,15 +44,15 @@
|
|||||||
|
|
||||||
// replace script blocks
|
// replace script blocks
|
||||||
foreach($_script_blocks as $curr_block) {
|
foreach($_script_blocks as $curr_block) {
|
||||||
$source = preg_replace("!@@@SMARTY:TRIM:SCRIPT@@@!",$curr_block,$source,1);
|
$source = str_replace("@@@SMARTY:TRIM:SCRIPT@@@",$curr_block, $source);
|
||||||
}
|
}
|
||||||
// replace pre blocks
|
// replace pre blocks
|
||||||
foreach($_pre_blocks as $curr_block) {
|
foreach($_pre_blocks as $curr_block) {
|
||||||
$source = preg_replace("!@@@SMARTY:TRIM:PRE@@@!",$curr_block,$source,1);
|
$source = str_replace("@@@SMARTY:TRIM:PRE@@@",$curr_block, $source);
|
||||||
}
|
}
|
||||||
// replace textarea blocks
|
// replace textarea blocks
|
||||||
foreach($_textarea_blocks as $curr_block) {
|
foreach($_textarea_blocks as $curr_block) {
|
||||||
$source = preg_replace("!@@@SMARTY:TRIM:TEXTAREA@@@!",$curr_block,$source,1);
|
$source = str_replace("@@@SMARTY:TRIM:TEXTAREA@@@",$curr_block, $source);
|
||||||
}
|
}
|
||||||
|
|
||||||
return $source;
|
return $source;
|
||||||
|
Reference in New Issue
Block a user