mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-07 01:06:48 +02:00
This is what I needed to finish to make phpBB compatible with PHP
4.2.3/Apache2. I dunno exactly why it won't work as-is, but this patch should fix it. I will do minor testing here. git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3151 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -90,7 +90,7 @@ class emailer
|
||||
|
||||
$this->tpl_file = @realpath($phpbb_root_path . 'language/lang_' . $template_lang . '/email/' . $template_file . '.tpl');
|
||||
|
||||
if ( !file_exists($this->tpl_file) )
|
||||
if ( !file_exists(realpath($this->tpl_file)) )
|
||||
{
|
||||
message_die(GENERAL_ERROR, 'Could not find email template file ' . $template_file, '', __LINE__, __FILE__);
|
||||
}
|
||||
@@ -307,7 +307,7 @@ class emailer
|
||||
//
|
||||
function encode_file($sourcefile)
|
||||
{
|
||||
if (is_readable($sourcefile))
|
||||
if (is_readable(realpath($sourcefile)))
|
||||
{
|
||||
$fd = fopen($sourcefile, "r");
|
||||
$contents = fread($fd, filesize($sourcefile));
|
||||
|
Reference in New Issue
Block a user