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:
@@ -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
|
||||
|
Reference in New Issue
Block a user