diff options
| author | Meik Sievertsen <acydburn@phpbb.com> | 2007-05-09 16:12:37 +0000 |
|---|---|---|
| committer | Meik Sievertsen <acydburn@phpbb.com> | 2007-05-09 16:12:37 +0000 |
| commit | 41bfc4391ea0b7980fe37b2a71822339b51e2036 (patch) | |
| tree | bc7772df0e2559bcb007c789e3a3e6f7fd4fce1a /phpBB/download.php | |
| parent | f4a279e9593f8bf5bef70f2118776070929754bf (diff) | |
| download | forums-41bfc4391ea0b7980fe37b2a71822339b51e2036.tar forums-41bfc4391ea0b7980fe37b2a71822339b51e2036.tar.gz forums-41bfc4391ea0b7980fe37b2a71822339b51e2036.tar.bz2 forums-41bfc4391ea0b7980fe37b2a71822339b51e2036.tar.xz forums-41bfc4391ea0b7980fe37b2a71822339b51e2036.zip | |
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
Diffstat (limited to 'phpBB/download.php')
| -rw-r--r-- | phpBB/download.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/phpBB/download.php b/phpBB/download.php index 5a90059ae1..ff4b1660cc 100644 --- a/phpBB/download.php +++ b/phpBB/download.php @@ -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 { |
