fixed handling of '$'-signs in trimwhitespace outputfilter (messju)

This commit is contained in:
messju
2003-03-12 16:26:55 +00:00
parent 63237d2343
commit 8cb7113db9
2 changed files with 4 additions and 3 deletions

1
NEWS
View File

@@ -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"

View File

@@ -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;