bugfix [ 904313 ] Problem with page-template preview in 6.0.0
This commit is contained in:
parent
b0ae354c4e
commit
ce8272c62e
3 changed files with 16 additions and 1 deletions
|
|
@ -290,9 +290,14 @@ sub drawTemplate {
|
|||
$template =~ s/\r//g;
|
||||
$template =~ s/\'/\\\'/g;
|
||||
$template = WebGUI::Macro::negate($template);
|
||||
$template =~ s/\<style.*?\>.*?\<\/style\>//gi;
|
||||
$template =~ s/\<script.*?\>.*?\<\/script\>//gi;
|
||||
$template =~ s/\<table.*?\>/\<table cellspacing=0 cellpadding=3 width=100 height=80 border=1\>/ig;
|
||||
$template =~ s/\<tmpl_loop\s+position(\d+)\_loop\>.*?\<\/tmpl\_loop\>/$1/ig;
|
||||
$template =~ s/\<tmpl_if.*?\>.*?\<\/tmpl_if\>//ig;
|
||||
$template =~ s/\<tmpl_if.*?\>//ig;
|
||||
$template =~ s/\<\/tmpl_if\>//ig;
|
||||
$template =~ s/\<tmpl_var.*?\>//ig;
|
||||
return $template;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue