aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_admin.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_admin.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_admin.php')
-rw-r--r--phpBB/includes/functions_admin.php12
1 files changed, 1 insertions, 11 deletions
diff --git a/phpBB/includes/functions_admin.php b/phpBB/includes/functions_admin.php
index 6309dda87d..865be1065e 100644
--- a/phpBB/includes/functions_admin.php
+++ b/phpBB/includes/functions_admin.php
@@ -1745,12 +1745,6 @@ function view_log($mode, &$log, &$log_count, $limit = 0, $offset = 0, $forum_id
$profile_url = (defined('IN_ADMIN')) ? "admin_users.$phpEx$SID" : "memberlist.$phpEx$SID&amp;mode=viewprofile";
- $censors = array();
- if ($user->optionget('viewcensors'))
- {
- obtain_word_list($censors);
- }
-
switch ($mode)
{
case 'admin':
@@ -1824,11 +1818,7 @@ function view_log($mode, &$log, &$log_count, $limit = 0, $offset = 0, $forum_id
{
foreach ($log_data_ary as $log_data)
{
- if (sizeof($censors) && $user->optionget('viewcensors'))
- {
- $log_data = preg_replace($censors['match'], $censors['replace'], $log_data);
- }
- $log_data = str_replace("\n", '<br />', $log_data);
+ $log_data = str_replace("\n", '<br />', censor_text($log_data));
$log[$i]['action'] = preg_replace('#%s#', $log_data, $log[$i]['action'], 1);
}