* adjust for sendmail.
This commit is contained in:
@@ -894,7 +894,7 @@ class actionModel extends model
|
||||
* @access public
|
||||
* @return void
|
||||
*/
|
||||
public function printChanges($objectType, $histories)
|
||||
public function printChanges($objectType, $histories, $canChangeTag = true)
|
||||
{
|
||||
if(empty($histories)) return;
|
||||
|
||||
@@ -921,7 +921,7 @@ class actionModel extends model
|
||||
$history->diff = ($history->field != 'subversion' and $history->field != 'git') ? htmlspecialchars($history->diff) : $history->diff; // Keep the diff link.
|
||||
$history->diff = str_replace(array('[ins]', '[/ins]', '[del]', '[/del]'), array('<ins>', '</ins>', '<del>', '</del>'), $history->diff);
|
||||
$history->diff = nl2br($history->diff);
|
||||
$history->noTagDiff = preg_replace('/<\/?([a-z][a-z0-9]*)[^\/]*\/?>/Ui', '', $history->diff);
|
||||
$history->noTagDiff = $canChangeTag ? preg_replace('/<\/?([a-z][a-z0-9]*)[^\/]*\/?>/Ui', '', $history->diff) : '';
|
||||
printf($this->lang->action->desc->diff2, $history->fieldLabel, $history->noTagDiff, $history->diff);
|
||||
}
|
||||
else
|
||||
|
||||
@@ -27,7 +27,7 @@ if(file_exists($extViewFile))
|
||||
<?php if(!empty($action->history)):?>
|
||||
<tr>
|
||||
<td style='padding: 10px;'>
|
||||
<div><?php echo $this->action->printChanges($action->objectType, $action->history);?></div>
|
||||
<div><?php $this->action->printChanges($action->objectType, $action->history, false);?></div>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endif;?>
|
||||
|
||||
Reference in New Issue
Block a user