Convert simple phutil_render_tag() to phutil_tag()
Summary: Done manually. Test Plan: Loaded homepage. Reviewers: epriestley Reviewed By: epriestley CC: aran, Korvin Differential Revision: https://secure.phabricator.com/D4509
This commit is contained in:
@@ -24,19 +24,22 @@ final class PhabricatorHeaderView extends AphrontView {
|
||||
public function render() {
|
||||
require_celerity_resource('phabricator-header-view-css');
|
||||
|
||||
$header = phutil_escape_html($this->header);
|
||||
$header = array($this->header);
|
||||
|
||||
if ($this->objectName) {
|
||||
$header = phutil_tag(
|
||||
'a',
|
||||
array(
|
||||
'href' => '/'.$this->objectName,
|
||||
),
|
||||
$this->objectName).' '.$header;
|
||||
array_unshift(
|
||||
$header,
|
||||
phutil_tag(
|
||||
'a',
|
||||
array(
|
||||
'href' => '/'.$this->objectName,
|
||||
),
|
||||
$this->objectName),
|
||||
' ');
|
||||
}
|
||||
|
||||
if ($this->tags) {
|
||||
$header .= phutil_render_tag(
|
||||
$header[] = phutil_render_tag(
|
||||
'span',
|
||||
array(
|
||||
'class' => 'phabricator-header-tags',
|
||||
@@ -49,7 +52,7 @@ final class PhabricatorHeaderView extends AphrontView {
|
||||
array(
|
||||
'class' => 'phabricator-header-shell',
|
||||
),
|
||||
phutil_render_tag(
|
||||
phutil_tag(
|
||||
'h1',
|
||||
array(
|
||||
'class' => 'phabricator-header-view',
|
||||
|
||||
Reference in New Issue
Block a user