mirror of
https://we.phorge.it/source/phorge.git
synced 2025-01-22 12:41:19 +01:00
Fix fatal in XHProf
Summary: derp, fixed method call Test Plan: Looked up PHUIHeaderView, checked method. Reviewers: btrahan, epriestley Reviewed By: epriestley Subscribers: Korvin, epriestley Differential Revision: https://secure.phabricator.com/D11815
This commit is contained in:
parent
a77127ab63
commit
7cd7ee4543
1 changed files with 5 additions and 8 deletions
|
@ -123,16 +123,13 @@ final class PhabricatorXHProfProfileTopLevelView
|
||||||
|
|
||||||
$panel = new PHUIObjectBoxView();
|
$panel = new PHUIObjectBoxView();
|
||||||
$header = id(new PHUIHeaderView())
|
$header = id(new PHUIHeaderView())
|
||||||
->setHeaderText(pht('XHProf Profile'));
|
->setHeader(pht('XHProf Profile'));
|
||||||
|
|
||||||
if ($this->file) {
|
if ($this->file) {
|
||||||
$button = phutil_tag(
|
$button = id(new PHUIButtonView())
|
||||||
'a',
|
->setHref($this->file->getBestURI())
|
||||||
array(
|
->setText(pht('Download .xhprof Profile'))
|
||||||
'href' => $this->file->getBestURI(),
|
->setTag('a');
|
||||||
'class' => 'green button',
|
|
||||||
),
|
|
||||||
pht('Download .xhprof Profile'));
|
|
||||||
$header->addActionLink($button);
|
$header->addActionLink($button);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue