diff options
| author | Meik Sievertsen <acydburn@phpbb.com> | 2004-03-11 21:17:32 +0000 |
|---|---|---|
| committer | Meik Sievertsen <acydburn@phpbb.com> | 2004-03-11 21:17:32 +0000 |
| commit | ba7008b387d1972736c638444cb6273c3d9ebeab (patch) | |
| tree | e8e9872a6e33b1ffd3cb48951f09353702120043 /phpBB/download.php | |
| parent | 7487bfce48dd90ea370c8a40e67a75b814f2eb37 (diff) | |
| download | forums-ba7008b387d1972736c638444cb6273c3d9ebeab.tar forums-ba7008b387d1972736c638444cb6273c3d9ebeab.tar.gz forums-ba7008b387d1972736c638444cb6273c3d9ebeab.tar.bz2 forums-ba7008b387d1972736c638444cb6273c3d9ebeab.tar.xz forums-ba7008b387d1972736c638444cb6273c3d9ebeab.zip | |
- re-enable drafts. ;)
- put extension checking into a small function...
git-svn-id: file:///svn/phpbb/trunk@4862 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/download.php')
| -rw-r--r-- | phpBB/download.php | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/phpBB/download.php b/phpBB/download.php index 9d61032d15..19b0b1c5b8 100644 --- a/phpBB/download.php +++ b/phpBB/download.php @@ -69,11 +69,8 @@ else trigger_error('SORRY_AUTH_VIEW_ATTACH'); } -$extensions = array(); -obtain_attach_extensions($extensions); - // disallowed ? -if ((is_array($extensions['_allowed_'][$attachment['extension']]) && !in_array($row['forum_id'], $extensions['_allowed_'][$attachment['extension']])) || !isset($extensions['_allowed_'][$attachment['extension']])) +if (extension_allowed($row['forum_id'], $attachment['extension'])) { trigger_error(sprintf($user->lang['EXTENSION_DISABLED_AFTER_POSTING'], $attachment['extension'])); } |
