mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-08 01:36:57 +02:00
More fixes
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3223 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -92,7 +92,12 @@ class emailer
|
||||
|
||||
if ( !file_exists(phpbb_realpath($this->tpl_file)) )
|
||||
{
|
||||
message_die(GENERAL_ERROR, 'Could not find email template file ' . $template_file, '', __LINE__, __FILE__);
|
||||
$this->tpl_file = @phpbb_realpath($phpbb_root_path . 'language/lang_' . $board_config['default_lang'] . '/email/' . $template_file . '.tpl');
|
||||
|
||||
if ( !file_exists(phpbb_realpath($this->tpl_file)) )
|
||||
{
|
||||
message_die(GENERAL_ERROR, 'Could not find email template file ' . $template_file, '', __LINE__, __FILE__);
|
||||
}
|
||||
}
|
||||
|
||||
if ( !$this->load_msg() )
|
||||
|
@@ -776,7 +776,7 @@ function generate_smilies($mode, $page_id)
|
||||
{
|
||||
if (empty($rowset[$row['smile_url']]))
|
||||
{
|
||||
$rowset[$row['smile_url']]['code'] = str_replace('\\', '\\\\', str_replace("'", "\\'", $row['code']));
|
||||
$rowset[$row['smile_url']]['code'] = str_replace("'", "\\'", str_replace('\\', '\\\\', $row['code']));
|
||||
$rowset[$row['smile_url']]['emoticon'] = $row['emoticon'];
|
||||
$num_smilies++;
|
||||
}
|
||||
|
Reference in New Issue
Block a user