From 1ae4d04246cd87cfd68ce54b72212b3c21632235 Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Thu, 16 Sep 2010 02:21:54 +0000 Subject: [PATCH] MINOR Avoid using ASP-style tags in SSViewer comments, it confuses PHP with asp_tags=ON (fixes #5976, thanks ezero) git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.4@110836 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 d29c8a576..77cde6364 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);