aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions.php
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2004-03-10 20:30:26 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2004-03-10 20:30:26 +0000
commit7487bfce48dd90ea370c8a40e67a75b814f2eb37 (patch)
tree0896d08ec9993dc920de00ebdcaf9c59eb0792fa /phpBB/includes/functions.php
parentc235dced700cd0223ac36880a25ff25110d8d6f4 (diff)
downloadforums-7487bfce48dd90ea370c8a40e67a75b814f2eb37.tar
forums-7487bfce48dd90ea370c8a40e67a75b814f2eb37.tar.gz
forums-7487bfce48dd90ea370c8a40e67a75b814f2eb37.tar.bz2
forums-7487bfce48dd90ea370c8a40e67a75b814f2eb37.tar.xz
forums-7487bfce48dd90ea370c8a40e67a75b814f2eb37.zip
- check for array [lang]
- admin_forums delete routine updated - added extension groups per forum git-svn-id: file:///svn/phpbb/trunk@4861 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/functions.php')
-rw-r--r--phpBB/includes/functions.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php
index c31969aef4..fcb073a074 100644
--- a/phpBB/includes/functions.php
+++ b/phpBB/includes/functions.php
@@ -883,11 +883,13 @@ function obtain_attach_extensions(&$extensions)
{
$extension = strtolower(trim($row['extension']));
- $extensions['_allowed_'][] = $extension;
$extensions[$extension]['display_cat'] = (int) $row['cat_id'];
$extensions[$extension]['download_mode'] = (int) $row['download_mode'];
$extensions[$extension]['upload_icon'] = trim($row['upload_icon']);
$extensions[$extension]['max_filesize'] = (int) $row['max_filesize'];
+
+ // Store allowed extensions forum wise
+ $extensions['_allowed_'][$extension] = (!$row['allowed_forums']) ? 0 : unserialize(trim($row['allowed_forums']));
}
$db->sql_freeresult($result);