mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-05 08:17:47 +02:00
fixed delete post bug, use extension cache while posting, fix download counter for images
git-svn-id: file:///svn/phpbb/trunk@3838 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -785,7 +785,7 @@ function obtain_attach_extensions(&$extensions)
|
||||
else
|
||||
{
|
||||
// Don't count on forbidden extensions table, because it is not allowed to allow forbidden extensions at all
|
||||
$sql = "SELECT e.extension, g.cat_id, g.download_mode, g.upload_icon
|
||||
$sql = "SELECT e.extension, g.*
|
||||
FROM " . EXTENSIONS_TABLE . " e, " . EXTENSION_GROUPS_TABLE . " g
|
||||
WHERE e.group_id = g.group_id
|
||||
AND g.allow_group = 1";
|
||||
@@ -800,6 +800,7 @@ function obtain_attach_extensions(&$extensions)
|
||||
$extensions[$extension]['display_cat'] = intval($row['cat_id']);
|
||||
$extensions[$extension]['download_mode'] = intval($row['download_mode']);
|
||||
$extensions[$extension]['upload_icon'] = trim($row['upload_icon']);
|
||||
$extensions[$extension]['max_filesize'] = intval($row['max_filesize']);
|
||||
}
|
||||
$db->sql_freeresult($result);
|
||||
|
||||
|
Reference in New Issue
Block a user