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:
@@ -78,7 +78,7 @@ final class PhabricatorConfigTransaction
|
|||||||
return parent::hasChangeDetails();
|
return parent::hasChangeDetails();
|
||||||
}
|
}
|
||||||
|
|
||||||
public function renderChangeDetails() {
|
public function renderChangeDetails(PhabricatorUser $viewer) {
|
||||||
$old = $this->getOldValue();
|
$old = $this->getOldValue();
|
||||||
$new = $this->getNewValue();
|
$new = $this->getNewValue();
|
||||||
|
|
||||||
@@ -97,6 +97,7 @@ final class PhabricatorConfigTransaction
|
|||||||
}
|
}
|
||||||
|
|
||||||
$view = id(new PhabricatorApplicationTransactionTextDiffDetailView())
|
$view = id(new PhabricatorApplicationTransactionTextDiffDetailView())
|
||||||
|
->setUser($viewer)
|
||||||
->setOldText($old_text)
|
->setOldText($old_text)
|
||||||
->setNewText($new_text);
|
->setNewText($new_text);
|
||||||
|
|
||||||
|
|||||||
@@ -325,7 +325,7 @@ abstract class PhabricatorApplicationTransaction
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function renderChangeDetails() {
|
public function renderChangeDetails(PhabricatorUser $viewer) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -206,7 +206,7 @@ class PhabricatorApplicationTransactionView extends AphrontView {
|
|||||||
'style' => 'display: none',
|
'style' => 'display: none',
|
||||||
'class' => 'phabricator-timeline-change-details',
|
'class' => 'phabricator-timeline-change-details',
|
||||||
),
|
),
|
||||||
$xaction->renderChangeDetails());
|
$xaction->renderChangeDetails($this->getUser()));
|
||||||
|
|
||||||
return array(
|
return array(
|
||||||
$show_more,
|
$show_more,
|
||||||
|
|||||||
Reference in New Issue
Block a user