mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-10 00:42:41 +01:00
Fix a missing viewer after D5152
I think this one got mucked up in a merge or I didn't grep properly. Auditors: vrana
This commit is contained in:
parent
8ae718c2aa
commit
a20ba85b75
3 changed files with 4 additions and 3 deletions
|
@ -78,7 +78,7 @@ final class PhabricatorConfigTransaction
|
|||
return parent::hasChangeDetails();
|
||||
}
|
||||
|
||||
public function renderChangeDetails() {
|
||||
public function renderChangeDetails(PhabricatorUser $viewer) {
|
||||
$old = $this->getOldValue();
|
||||
$new = $this->getNewValue();
|
||||
|
||||
|
@ -97,6 +97,7 @@ final class PhabricatorConfigTransaction
|
|||
}
|
||||
|
||||
$view = id(new PhabricatorApplicationTransactionTextDiffDetailView())
|
||||
->setUser($viewer)
|
||||
->setOldText($old_text)
|
||||
->setNewText($new_text);
|
||||
|
||||
|
|
|
@ -325,7 +325,7 @@ abstract class PhabricatorApplicationTransaction
|
|||
return false;
|
||||
}
|
||||
|
||||
public function renderChangeDetails() {
|
||||
public function renderChangeDetails(PhabricatorUser $viewer) {
|
||||
return null;
|
||||
}
|
||||
|
||||
|
|
|
@ -206,7 +206,7 @@ class PhabricatorApplicationTransactionView extends AphrontView {
|
|||
'style' => 'display: none',
|
||||
'class' => 'phabricator-timeline-change-details',
|
||||
),
|
||||
$xaction->renderChangeDetails());
|
||||
$xaction->renderChangeDetails($this->getUser()));
|
||||
|
||||
return array(
|
||||
$show_more,
|
||||
|
|
Loading…
Reference in a new issue