Issue 2157 space removing fix.

git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.3@10913 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
misol 2012-07-19 05:11:25 +00:00
parent 57c3aa5d9d
commit 1830ff3d0d

View file

@ -205,7 +205,7 @@ class TemplateHandler {
$buff = '<?php if(!defined("__XE__"))exit;?>'.$buff;
// remove php script reopening
$buff = preg_replace(array('/(\n|\r\n)+/','/(;)?( )*\?\>([\n\t ]+)?\<\?php([\n\t ]+)?/'),array("\n",";\n"),$buff);
$buff = preg_replace(array('/(\n|\r\n)+/','/(;)?( )*\?\>([\n\t]+)?\<\?php([\n\t ]+)?/'),array("\n",";\n"),$buff);
return $buff;
}