1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-04 07:47:34 +02:00

Efficiency improvement to the log viewing code

+ reverting what appears to be an accidental change to the report viewing code


git-svn-id: file:///svn/phpbb/trunk@6192 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Graham Eames
2006-07-18 20:34:26 +00:00
parent ec3bcb4a82
commit 1984ab5af5
2 changed files with 2 additions and 3 deletions

View File

@@ -2140,8 +2140,7 @@ function view_log($mode, &$log, &$log_count, $limit = 0, $offset = 0, $forum_id
if (isset($user->lang[$row['log_operation']]))
{
$params = array_merge(array($log[$i]['action']), $log_data_ary);
$log[$i]['action'] = call_user_func_array('sprintf', $params);
$log[$i]['action'] = vsprintf($log[$i]['action'], $log_data_ary);
$log[$i]['action'] = str_replace("\n", '<br />', censor_text($log[$i]['action']));
}
else