aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_display.php
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2004-02-21 12:47:35 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2004-02-21 12:47:35 +0000
commitc74d2538ec68fa1c6f3da6d26e31a09f2045557b (patch)
treebe1c11d7d9e403c7b884c7d08e34111f0806d350 /phpBB/includes/functions_display.php
parent9c12fe83db3914b4e35bdcef75cc70e2f75044d6 (diff)
downloadforums-c74d2538ec68fa1c6f3da6d26e31a09f2045557b.tar
forums-c74d2538ec68fa1c6f3da6d26e31a09f2045557b.tar.gz
forums-c74d2538ec68fa1c6f3da6d26e31a09f2045557b.tar.bz2
forums-c74d2538ec68fa1c6f3da6d26e31a09f2045557b.tar.xz
forums-c74d2538ec68fa1c6f3da6d26e31a09f2045557b.zip
- put consoring and smilie processing into functions (we use them all over the place) for better changing and consistency.
- changed docs/AUTHORS to reflect the recent code re-use in functions_messenger.php - pleasing the users a little bit more by using table constants. :D - login box if "mode" is not allowed -> posting (thought about trigger_error integration, but we do not need this that often). git-svn-id: file:///svn/phpbb/trunk@4836 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/functions_display.php')
-rw-r--r--phpBB/includes/functions_display.php10
1 files changed, 2 insertions, 8 deletions
diff --git a/phpBB/includes/functions_display.php b/phpBB/includes/functions_display.php
index 3f0bee5d39..dc86e48ec9 100644
--- a/phpBB/includes/functions_display.php
+++ b/phpBB/includes/functions_display.php
@@ -334,7 +334,7 @@ function display_forums($root_data = '', $display_moderators = TRUE)
function display_attachments($blockname, $attachment_data, &$update_count, $force_physical = false, $return = false)
{
global $extensions, $template, $cache, $attachment_tpl;
- global $config, $user, $phpbb_root_path, $phpEx, $SID, $censors;
+ global $config, $user, $phpbb_root_path, $phpEx, $SID;
// $starttime = explode(' ', microtime());
// $starttime = $starttime[1] + $starttime[0];
@@ -377,12 +377,6 @@ function display_attachments($blockname, $attachment_data, &$update_count, $forc
}
}
- if (empty($censors))
- {
- $censors = array();
- obtain_word_list($censors);
- }
-
if (empty($extensions) || !is_array($extensions))
{
$extensions = array();
@@ -413,7 +407,7 @@ function display_attachments($blockname, $attachment_data, &$update_count, $forc
$filesize = ($filesize >= 1048576) ? round((round($filesize / 1048576 * 100) / 100), 2) : (($filesize >= 1024) ? round((round($filesize / 1024 * 100) / 100), 2) : $filesize);
$display_name = $attachment['real_filename'];
- $comment = (sizeof($censors)) ? preg_replace($censors['match'], $censors['replace'], str_replace("\n", '<br />', $attachment['comment'])) : str_replace("\n", '<br />', $attachment['comment']);
+ $comment = str_replace("\n", '<br />', censor_text($attachment['comment']));
$denied = FALSE;