1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-10 08:52:39 +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:
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();
$header = id(new PHUIHeaderView())
->setHeaderText(pht('XHProf Profile'));
->setHeader(pht('XHProf Profile'));
if ($this->file) {
$button = phutil_tag(
'a',
array(
'href' => $this->file->getBestURI(),
'class' => 'green button',
),
pht('Download .xhprof Profile'));
$button = id(new PHUIButtonView())
->setHref($this->file->getBestURI())
->setText(pht('Download .xhprof Profile'))
->setTag('a');
$header->addActionLink($button);
}