added code to stop raintpl from eating \r on new lines for yealink and similar phones.

This commit is contained in:
Matt Putnam 2013-11-11 06:53:51 +00:00
parent c56b335cfb
commit e0639901fa
1 changed files with 3 additions and 0 deletions

View File

@ -312,6 +312,9 @@ class RainTPL{
// fix the php-eating-newline-after-closing-tag-problem
$template_compiled = str_replace( "?>\n", "?>\n\n", $template_compiled );
// fix the php-eating-carridge-returns-after-closing-tag-problem
$template_compiled = str_replace( "?>\r", "?>\r\r", $template_compiled );
// create directories
if( !is_dir( $cache_dir ) )