aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes
diff options
context:
space:
mode:
authorDavid M <davidmj@users.sourceforge.net>2007-03-25 15:58:48 +0000
committerDavid M <davidmj@users.sourceforge.net>2007-03-25 15:58:48 +0000
commitf5ddbc46532bb28bc87f99d50d94a3e2c1b5d60b (patch)
tree7cc7ce9b923c054a2891121fe7ac5247812cbc4e /phpBB/includes
parent6bc4b1412b42c275b0715ee47c5bf923ee3f2206 (diff)
downloadforums-f5ddbc46532bb28bc87f99d50d94a3e2c1b5d60b.tar
forums-f5ddbc46532bb28bc87f99d50d94a3e2c1b5d60b.tar.gz
forums-f5ddbc46532bb28bc87f99d50d94a3e2c1b5d60b.tar.bz2
forums-f5ddbc46532bb28bc87f99d50d94a3e2c1b5d60b.tar.xz
forums-f5ddbc46532bb28bc87f99d50d94a3e2c1b5d60b.zip
fopen + fread + fclose -> file_get_contents
git-svn-id: file:///svn/phpbb/trunk@7230 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes')
-rw-r--r--phpBB/includes/functions_messenger.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/phpBB/includes/functions_messenger.php b/phpBB/includes/functions_messenger.php
index dd84533b23..e68fbf58e6 100644
--- a/phpBB/includes/functions_messenger.php
+++ b/phpBB/includes/functions_messenger.php
@@ -163,13 +163,12 @@ class messenger
}
}
- if (!($fd = @fopen($tpl_file, 'r')))
+ if (($data = @file_get_contents($tpl_file)) !== false)
{
trigger_error("Failed opening template file [ $tpl_file ]", E_USER_ERROR);
}
- $this->tpl_msg[$template_lang . $template_file] = fread($fd, filesize($tpl_file));
- fclose($fd);
+ $this->tpl_msg[$template_lang . $template_file] = $data;
}
$this->msg = $this->tpl_msg[$template_lang . $template_file];