added code to stop raintpl from eating \r on new lines for yealink and similar phones.
This commit is contained in:
parent
e25d02b890
commit
47e3fda5c6
|
|
@ -313,6 +313,9 @@ class RainTPL{
|
||||||
// fix the php-eating-newline-after-closing-tag-problem
|
// fix the php-eating-newline-after-closing-tag-problem
|
||||||
$template_compiled = str_replace( "?>\n", "?>\n\n", $template_compiled );
|
$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
|
// create directories
|
||||||
if( !is_dir( $cache_dir ) )
|
if( !is_dir( $cache_dir ) )
|
||||||
mkdir( $cache_dir, 0755, true );
|
mkdir( $cache_dir, 0755, true );
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue