this line of smarty_internal_templatebase.php:
$output .= preg_replace('/(<%|%>|<\?php|<\?|\?>)/', "<?php echo '\$1'; ?>\n", $curr_split);
is giving me the error: Compilation failed:missing ) at..
I think it has something to do with DIRECTORY_SEPARATOR ** like here: https://stackoverflow.com/questions/1142263/php-preg-replace-compilation-failed-missing The error is strange becouse the script is core Presta/Smarty script, so I quess it shouldn't be wrong.
So how to modify that line ta avoid that error? Would appreciate any help, Thank you
Shall I
preg_quote(DIRECTORY_SEPARATOR, '#');
with
preg_replace('/(<%|%>|<\?php|<\?|\?>)/', "<?php echo '\$1'; ?>\n", $curr_split)