From 85055ac97fa57ca339924cef719115d85bdf6c2e Mon Sep 17 00:00:00 2001 From: David M Date: Thu, 3 Jan 2008 17:00:40 +0000 Subject: oh boy... - Migrate code base to PHP 5.1+ git-svn-id: file:///svn/phpbb/trunk@8295 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/includes/functions_content.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'phpBB/includes/functions_content.php') diff --git a/phpBB/includes/functions_content.php b/phpBB/includes/functions_content.php index c0acd2eb41..b601e3a60c 100644 --- a/phpBB/includes/functions_content.php +++ b/phpBB/includes/functions_content.php @@ -660,7 +660,7 @@ function censor_text($text) } else { - $censors = $cache->obtain_word_list(); + $censors = cache::obtain_word_list(); } } @@ -722,6 +722,7 @@ function parse_attachments($forum_id, &$message, &$attachments, &$update_count, // $compiled_attachments = array(); + // @todo: do we really need this check? if (!isset($template->filename['attachment_tpl'])) { $template->set_filenames(array( @@ -731,7 +732,7 @@ function parse_attachments($forum_id, &$message, &$attachments, &$update_count, if (empty($extensions) || !is_array($extensions)) { - $extensions = $cache->obtain_attach_extensions($forum_id); + $extensions = cache::obtain_attach_extensions($forum_id); } // Look for missing attachment information... @@ -1046,7 +1047,7 @@ function extension_allowed($forum_id, $extension, &$extensions) if (empty($extensions)) { global $cache; - $extensions = $cache->obtain_attach_extensions($forum_id); + $extensions = cache::obtain_attach_extensions($forum_id); } return (!isset($extensions['_allowed_'][$extension])) ? false : true; @@ -1187,7 +1188,7 @@ class bitfield { var $data; - function bitfield($bitfield = '') + function __construct($bitfield = '') { $this->data = base64_decode($bitfield); } -- cgit v1.2.1