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:
vrana
2013-01-18 00:32:58 -08:00
parent 21a5956a35
commit 3c1b8df8ae
51 changed files with 223 additions and 214 deletions

View File

@@ -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',