1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-06 00:37:42 +02:00

minor fix

also set load_tplcompile to 0 by default now it is quite intensive with the default settings/style.


git-svn-id: file:///svn/phpbb/trunk@7514 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Meik Sievertsen
2007-05-09 16:12:37 +00:00
parent f4a279e959
commit 41bfc4391e
3 changed files with 8 additions and 8 deletions

View File

@@ -53,8 +53,8 @@ if (isset($_GET['avatar']))
$db->sql_close();
exit;
}
$ext = substr(strrchr($filename, '.'), 1);
$ext = substr(strrchr($filename, '.'), 1);
$filename = intval($filename);
if (!in_array($ext, array('png', 'gif', 'jpg', 'jpeg')))
@@ -242,8 +242,8 @@ else
trigger_error($user->lang['PHYSICAL_DOWNLOAD_NOT_POSSIBLE']);
}
redirect($phpbb_root_path . $config['upload_path'] . '/' . $attachment['physical_filename']);
exit;
redirect($phpbb_root_path . $config['upload_path'] . '/' . $attachment['physical_filename']);
exit;
}
else
{