1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-09-20 09:18:48 +02: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:
Chad Little 2015-02-18 15:54:25 -08:00
parent a77127ab63
commit 7cd7ee4543

View file

@ -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);
} }