Convert phutil_render_tag(X, Y, phutil_escape_html(Z)) to phutil_tag
Summary:
Created with spatch:
lang=diff
- phutil_render_tag
+ phutil_tag
(X, Y,
- phutil_escape_html(
Z
- )
)
Test Plan: Loaded homepage
Reviewers: epriestley
Reviewed By: epriestley
CC: aran, Korvin
Differential Revision: https://secure.phabricator.com/D4501
This commit is contained in:
@@ -19,12 +19,12 @@ final class DifferentialDiffViewController extends DifferentialController {
|
||||
if ($diff->getRevisionID()) {
|
||||
$top_panel = new AphrontPanelView();
|
||||
$top_panel->setWidth(AphrontPanelView::WIDTH_WIDE);
|
||||
$link = phutil_render_tag(
|
||||
$link = phutil_tag(
|
||||
'a',
|
||||
array(
|
||||
'href' => PhabricatorEnv::getURI('/D'.$diff->getRevisionID()),
|
||||
),
|
||||
phutil_escape_html('D'.$diff->getRevisionID()));
|
||||
'D'.$diff->getRevisionID());
|
||||
$top_panel->appendChild(
|
||||
"<h1>".pht('This diff belongs to revision %s', $link)."</h1>");
|
||||
} else {
|
||||
@@ -52,12 +52,12 @@ final class DifferentialDiffViewController extends DifferentialController {
|
||||
if ($revisions) {
|
||||
$select[] = '<optgroup label="'.pht('Update Existing Revision').'">';
|
||||
foreach ($revisions as $revision) {
|
||||
$select[] = phutil_render_tag(
|
||||
$select[] = phutil_tag(
|
||||
'option',
|
||||
array(
|
||||
'value' => $revision->getID(),
|
||||
),
|
||||
phutil_escape_html($revision->getTitle()));
|
||||
$revision->getTitle());
|
||||
}
|
||||
$select[] = '</optgroup>';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user