diff --git a/phpBB/includes/functions_template.php b/phpBB/includes/functions_template.php index 925630e7ec..46c7cedc01 100644 --- a/phpBB/includes/functions_template.php +++ b/phpBB/includes/functions_template.php @@ -228,7 +228,6 @@ class template_compile return "\$$echo_var .= '" . str_replace(' ?>" . $template_php; return str_replace(' ?>template->cachepath . str_replace('/', '.', $this->template->filename[$handle]) . '.' . $phpEx; + $data = "' . $data); + if ($fp = @fopen($filename, 'wb')) { @flock($fp, LOCK_EX);