From d4a1087cb8198d463be831f69b400ebb2360b238 Mon Sep 17 00:00:00 2001 From: Normann Lou Date: Tue, 17 Feb 2009 01:24:46 +0000 Subject: [PATCH] BUGFIX: In SSViewer::parseTemplateContent($content, $template=""), when the $content is a xml template, we should not wrap anything around it, for web browser able to correct parse the xml git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.3@71923 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- core/SSViewer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/SSViewer.php b/core/SSViewer.php index 5216300b0..c195c5b4c 100644 --- a/core/SSViewer.php +++ b/core/SSViewer.php @@ -369,7 +369,7 @@ class SSViewer extends Object { static function parseTemplateContent($content, $template="") { // Add template filename comments on dev sites - if(Director::isDev() && self::$source_file_comments && $template) { + if(Director::isDev() && self::$source_file_comments && $template && stripos($content, "]*>)/i', "\\1", $content);