diff --git a/core/SSViewer.php b/core/SSViewer.php index efbd19143..5216300b0 100644 --- a/core/SSViewer.php +++ b/core/SSViewer.php @@ -383,9 +383,9 @@ class SSViewer extends Object { $oldContent = $content; // Add include filename comments on dev sites - if(Director::isDev() && self::$source_file_comments) $replacementCode = 'return "\n" + if(Director::isDev() && self::$source_file_comments) $replacementCode = 'return "\n" . SSViewer::getTemplateContent($matches[1]) - . "\n";'; + . "\n";'; else $replacementCode = 'return SSViewer::getTemplateContent($matches[1]);'; $content = preg_replace_callback('/<' . '% include +([A-Za-z0-9_]+) +%' . '>/', create_function(