From 2f9192dbf64676baebbc43a6ea630ef68d04f152 Mon Sep 17 00:00:00 2001 From: Sam Minnee Date: Tue, 19 Oct 2010 01:36:15 +0000 Subject: [PATCH] MINOR Avoid using ASP-style tags in SSViewer comments, it confuses PHP with asp_tags=ON (fixes #5976, thanks ezero) (from r110836) git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@112849 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 6ceb00688..6ed16af82 100755 --- a/core/SSViewer.php +++ b/core/SSViewer.php @@ -315,7 +315,7 @@ class SSViewer { $content = file_get_contents(SSViewer::getTemplateFile($identifier)); // $content = "". $content; - // Adds an i18n namespace to all <% _t(...) %> calls without an existing one + // Adds an i18n namespace to all _t(...) calls without an existing one // to avoid confusion when using the include in different contexts. // Entities without a namespace are deprecated, but widely used. $content = ereg_replace('<' . '% +_t\((\'([^\.\']*)\'|"([^\."]*)")(([^)]|\)[^ ]|\) +[^% ])*)\) +%' . '>', '', $content);