aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_posting.php
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2006-11-12 15:35:43 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2006-11-12 15:35:43 +0000
commitd89f60f182afa07e28d4e58f59b90dd25555e3a6 (patch)
treeb326dbe53f284a7127ea8a63cccc7119dc77783d /phpBB/includes/functions_posting.php
parentb0217ddc11799f81c8cf42961f6e0db54ce2e38e (diff)
downloadforums-d89f60f182afa07e28d4e58f59b90dd25555e3a6.tar
forums-d89f60f182afa07e28d4e58f59b90dd25555e3a6.tar.gz
forums-d89f60f182afa07e28d4e58f59b90dd25555e3a6.tar.bz2
forums-d89f60f182afa07e28d4e58f59b90dd25555e3a6.tar.xz
forums-d89f60f182afa07e28d4e58f59b90dd25555e3a6.zip
consistant obtain_* functions
git-svn-id: file:///svn/phpbb/trunk@6572 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/functions_posting.php')
-rw-r--r--phpBB/includes/functions_posting.php7
1 files changed, 2 insertions, 5 deletions
diff --git a/phpBB/includes/functions_posting.php b/phpBB/includes/functions_posting.php
index a16870f01c..b15466b487 100644
--- a/phpBB/includes/functions_posting.php
+++ b/phpBB/includes/functions_posting.php
@@ -214,8 +214,7 @@ function posting_gen_topic_icons($mode, $icon_id)
global $phpbb_root_path, $config, $template, $cache;
// Grab icons
- $icons = array();
- $cache->obtain_icons($icons);
+ $icons = $cache->obtain_icons();
if (!$icon_id)
{
@@ -339,9 +338,7 @@ function upload_attachment($form_name, $forum_id, $local = false, $local_storage
return $filedata;
}
- $extensions = array();
- $cache->obtain_attach_extensions($extensions, $forum_id);
-
+ $extensions = $cache->obtain_attach_extensions($forum_id);
$upload->set_allowed_extensions(array_keys($extensions['_allowed_']));
$file = ($local) ? $upload->local_upload($local_storage) : $upload->form_upload($form_name);