mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
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
This commit is contained in:
parent
e278a819a1
commit
1ae4d04246
@ -315,7 +315,7 @@ class SSViewer {
|
||||
$content = file_get_contents(SSViewer::getTemplateFile($identifier));
|
||||
|
||||
// $content = "<!-- getTemplateContent() :: identifier: $identifier -->". $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\((\'([^\.\']*)\'|"([^\."]*)")(([^)]|\)[^ ]|\) +[^% ])*)\) +%' . '>', '<?= _t(\''. $identifier . '.ss' . '.\\2\\3\'\\4) ?>', $content);
|
||||
|
Loading…
Reference in New Issue
Block a user