mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-04 10:24:26 +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
|
||||
(Nagger, Monte)
|
||||
- add dpi functionality to html_image, change "name"
|
||||
|
@@ -44,15 +44,15 @@
|
||||
|
||||
// replace script blocks
|
||||
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
|
||||
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
|
||||
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;
|
||||
|
Reference in New Issue
Block a user