From e8c8c9472a59445a06dfe226d5ab963f3f8d570f Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Thu, 16 Dec 2010 01:27:19 +0000 Subject: [PATCH] MINOR Don't add closing PHP tags in i18nTextCollector->writeMasterStringFile() (thanks Fred Condo) git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@115097 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- core/i18nTextCollector.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/i18nTextCollector.php b/core/i18nTextCollector.php index 8edc3b253..3591e5b88 100644 --- a/core/i18nTextCollector.php +++ b/core/i18nTextCollector.php @@ -400,7 +400,7 @@ class i18nTextCollector extends Object { user_error('i18nTextCollector->writeMasterStringFile(): Invalid PHP language file. Error: ' . $e->toString(), E_USER_ERROR); } - fwrite($fh, "<"."?php{$eol}{$eol}global \$lang;{$eol}{$eol}" . $php . "{$eol}?".">"); + fwrite($fh, "<"."?php{$eol}{$eol}global \$lang;{$eol}{$eol}" . $php . "{$eol}"); fclose($fh); //Debug::message("Created file: $langFolder/" . $this->defaultLocale . ".php", false);