Undo the change committed in r71918 since the commit message is missing

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.3@71921 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Normann Lou 2009-02-17 01:19:45 +00:00 committed by Sam Minnee
parent fadb2c50fd
commit 0e2345c253

View File

@ -369,8 +369,6 @@ class SSViewer extends Object {
static function parseTemplateContent($content, $template="") {
// Add template filename comments on dev sites
// If the template is a xml template, then wrapping nothing.
if(stripos($content, "<?xml")===false){
if(Director::isDev() && self::$source_file_comments && $template) {
// If this template is a full HTML page, then put the comments just inside the HTML tag to prevent any IE glitches
if(stripos($content, "<html") !== false) {
@ -380,7 +378,6 @@ class SSViewer extends Object {
$content = "<!-- template $template -->\n" . $content . "\n<!-- end template $template -->";
}
}
}
while(true) {
$oldContent = $content;