From b9a3ef486ebcde18a5ade37865ff8f397185d24f Mon Sep 17 00:00:00 2001 From: Till Brehm <tbrehm@ispconfig.org> Date: Sun, 24 Jul 2016 05:30:59 -0400 Subject: [PATCH] Fixed #3979 Mailbox users unable to save autoresponders --- server/lib/classes/tpl.inc.php | 6 ++---- 1 files changed, 2 insertions(+), 4 deletions(-) diff --git a/server/lib/classes/tpl.inc.php b/server/lib/classes/tpl.inc.php index 5e595f6..70dc2e7 100644 --- a/server/lib/classes/tpl.inc.php +++ b/server/lib/classes/tpl.inc.php @@ -858,14 +858,12 @@ if($this->_cache && $this->_checkCache($tmplfile, $tmpl_from_string)) { //* cache exists so lets use it - $data = fread($fp = fopen($this->_cachefile, 'r'), filesize($this->_cachefile)); - fclose($fp); + $data = file_get_contents($this->_cachefile); } else { //* no cache lets parse the file if($tmpl_from_string == true) { $data = $tmplfile; } else { - $data = fread($fp = fopen($tmplfile, 'r'), filesize($tmplfile)); - fclose($fp); + $data = file_get_contents($tmplfile); } $regex = '/(<|<\/|{|{\/|<!--|<!--\/){1}\s*'; -- Gitblit v1.9.1