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:
parent
a77127ab63
commit
7cd7ee4543
1 changed files with 5 additions and 8 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue