Skip to content

Commit 20768d6

Browse files
author
vrana
committed
Convert phutil_render_tag(X, Y, '...') to phutil_tag
Summary: Created with spatch: lang=diff - phutil_render_tag + phutil_tag (X, Y, '...') Then searched for `&` and `<` in the output and replaced them. Test Plan: Loaded homepage. Reviewers: epriestley Reviewed By: epriestley CC: aran, Korvin Differential Revision: https://secure.phabricator.com/D4503
1 parent 48561a8 commit 20768d6

File tree

86 files changed

+140
-140
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

86 files changed

+140
-140
lines changed

src/aphront/console/plugin/DarkConsoleServicesPlugin.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ public function render() {
146146

147147
$results[] =
148148
'<div class="dark-console-panel-header">'.
149-
phutil_render_tag(
149+
phutil_tag(
150150
'a',
151151
array(
152152
'href' => $this->getRequestURI()->alter('__analyze__', true),

src/aphront/console/plugin/DarkConsoleXHProfPlugin.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public function getXHProfRunID() {
3232
public function render() {
3333
if (!DarkConsoleXHProfPluginAPI::isProfilerAvailable()) {
3434
$href = PhabricatorEnv::getDoclink('article/Installation_Guide.html');
35-
$install_guide = phutil_render_tag(
35+
$install_guide = phutil_tag(
3636
'a',
3737
array(
3838
'href' => $href,
@@ -53,7 +53,7 @@ public function render() {
5353

5454
$header =
5555
'<div class="dark-console-panel-header">'.
56-
phutil_render_tag(
56+
phutil_tag(
5757
'a',
5858
array(
5959
'href' => $this->getRequestURI()->alter('__profile__', 'page'),

src/applications/auth/controller/PhabricatorMustVerifyEmailController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public function processRequest() {
5353
'action' => '/login/mustverify/',
5454
'method' => 'POST',
5555
),
56-
phutil_render_tag(
56+
phutil_tag(
5757
'button',
5858
array(
5959
),

src/applications/calendar/view/AphrontCalendarMonthView.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -159,18 +159,18 @@ private function renderCalendarHeader(DateTime $date) {
159159
$uri = new PhutilURI($uri);
160160
list($prev_year, $prev_month) = $this->getPrevYearAndMonth();
161161
$query = array('year' => $prev_year, 'month' => $prev_month);
162-
$prev_link = phutil_render_tag(
162+
$prev_link = phutil_tag(
163163
'a',
164164
array('href' => (string) $uri->setQueryParams($query)),
165-
'&larr;'
165+
"\xE2\x86\x90"
166166
);
167167

168168
list($next_year, $next_month) = $this->getNextYearAndMonth();
169169
$query = array('year' => $next_year, 'month' => $next_month);
170-
$next_link = phutil_render_tag(
170+
$next_link = phutil_tag(
171171
'a',
172172
array('href' => (string) $uri->setQueryParams($query)),
173-
'&rarr;'
173+
"\xE2\x86\x92"
174174
);
175175

176176
$left_th = '<th>'.$prev_link.'</th>';

src/applications/countdown/controller/PhabricatorCountdownListController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public function processRequest() {
2828
$delete_button = null;
2929
if ($user->getIsAdmin() ||
3030
($user->getPHID() == $timer->getAuthorPHID())) {
31-
$edit_button = phutil_render_tag(
31+
$edit_button = phutil_tag(
3232
'a',
3333
array(
3434
'class' => 'small button grey',

src/applications/daemon/controller/PhabricatorDaemonConsoleController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ public function processRequest() {
8181
$task->getLeaseOwner(),
8282
$task->getLeaseExpires() - time(),
8383
$task->getFailureCount(),
84-
phutil_render_tag(
84+
phutil_tag(
8585
'a',
8686
array(
8787
'href' => '/daemon/task/'.$task->getID().'/',

src/applications/daemon/view/PhabricatorDaemonLogListView.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ public function render() {
8181
$log->getPID(),
8282
phabricator_date($epoch, $this->user),
8383
phabricator_time($epoch, $this->user),
84-
phutil_render_tag(
84+
phutil_tag(
8585
'a',
8686
array(
8787
'href' => '/daemon/log/'.$log->getID().'/',

src/applications/differential/controller/DifferentialDiffCreateController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public function processRequest() {
3030
$form = new AphrontFormView();
3131
$arcanist_href = PhabricatorEnv::getDoclink(
3232
'article/Arcanist_User_Guide.html');
33-
$arcanist_link = phutil_render_tag(
33+
$arcanist_link = phutil_tag(
3434
'a',
3535
array(
3636
'href' => $arcanist_href,

src/applications/differential/controller/DifferentialRevisionViewController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ public function processRequest() {
184184
'<p>'.pht('This diff is very large and affects %d files. Load '.
185185
'each file individually. ', $count).
186186
"<strong>".
187-
phutil_render_tag(
187+
phutil_tag(
188188
'a',
189189
array(
190190
'href' => $request_uri

src/applications/differential/view/DifferentialChangesetFileTreeSideNavBuilder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ public function build(array $changesets) {
9090
$icon = 'phabricator-filetree-icon-dir';
9191
}
9292

93-
$icon = phutil_render_tag(
93+
$icon = phutil_tag(
9494
'span',
9595
array(
9696
'class' => 'phabricator-filetree-icon '.$icon,

0 commit comments

Comments
 (0)