Skip to content

Commit 21a5956

Browse files
author
vrana
committed
Convert phutil_render_tag(X, Y, pht('...')) to phutil_tag
Summary: Created with spatch: lang=diff - phutil_render_tag + phutil_tag (X, Y, pht('...')) The searched for `<` and `&` by sgrep. Test Plan: Loaded homepage. Reviewers: epriestley Reviewed By: epriestley CC: aran, Korvin Differential Revision: https://secure.phabricator.com/D4504
1 parent 20768d6 commit 21a5956

File tree

11 files changed

+15
-15
lines changed

11 files changed

+15
-15
lines changed

src/applications/calendar/controller/PhabricatorCalendarDeleteStatusController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public function processRequest() {
3737
$dialog = new AphrontDialogView();
3838
$dialog->setUser($user);
3939
$dialog->setTitle(pht('Really delete status?'));
40-
$dialog->appendChild(phutil_render_tag(
40+
$dialog->appendChild(phutil_tag(
4141
'p',
4242
array(),
4343
pht('Permanently delete this status? This action can not be undone.')

src/applications/config/controller/PhabricatorConfigIssueViewController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public function processRequest() {
2222
->setTitle(pht('Issue Resolved'))
2323
->appendChild(pht('This setup issue has been resolved. '))
2424
->appendChild(
25-
phutil_render_tag(
25+
phutil_tag(
2626
'a',
2727
array(
2828
'href' => $this->getApplicationURI('issue/'),

src/applications/config/view/PhabricatorSetupIssueView.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ public function render() {
8888

8989
}
9090

91-
$next = phutil_render_tag(
91+
$next = phutil_tag(
9292
'div',
9393
array(
9494
'class' => 'setup-issue-next',
@@ -308,7 +308,7 @@ private function renderPHPConfig(array $configs) {
308308
pht(
309309
"You can find more information about PHP configuration values in the ".
310310
"%s.",
311-
phutil_render_tag(
311+
phutil_tag(
312312
'a',
313313
array(
314314
'href' => 'http://php.net/manual/ini.list.php',

src/applications/differential/controller/DifferentialRevisionViewController.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,15 +153,15 @@ public function processRequest() {
153153
$reviewer_warning->setTitle(pht('No Active Reviewers'));
154154
if ($revision->getReviewers()) {
155155
$reviewer_warning->appendChild(
156-
phutil_render_tag(
156+
phutil_tag(
157157
'p',
158158
array(),
159159
pht('All specified reviewers are disabled and this revision '.
160160
'needs review. You may want to add some new reviewers.')
161161
));
162162
} else {
163163
$reviewer_warning->appendChild(
164-
phutil_render_tag(
164+
phutil_tag(
165165
'p',
166166
array(),
167167
pht('This revision has no specified reviewers and needs '.

src/applications/differential/render/DifferentialChangesetTwoUpRenderer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public function renderTextChange(
2121
array(
2222
'sigil' => 'context-target',
2323
),
24-
phutil_render_tag(
24+
phutil_tag(
2525
'td',
2626
array(
2727
'colspan' => 6,

src/applications/files/view/PhabricatorGlobalUploadTargetView.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public function render() {
2525
'browseURI' => '/file/filter/my/',
2626
));
2727

28-
return phutil_render_tag(
28+
return phutil_tag(
2929
'div',
3030
array(
3131
'id' => $instructions_id,

src/applications/maniphest/controller/ManiphestReportController.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,7 @@ public function renderOpenTasks() {
414414
array(
415415
'href' => $base_link.ManiphestTaskOwner::OWNER_UP_FOR_GRABS,
416416
),
417-
phutil_render_html('em', array(), '(Up For Grabs)'));
417+
phutil_tag('em', array(), '(Up For Grabs)'));
418418
$col_header = 'User';
419419
$header = 'Open Tasks by User and Priority ('.$date.')';
420420
break;
@@ -451,7 +451,7 @@ public function renderOpenTasks() {
451451
array(
452452
'href' => $base_link.ManiphestTaskOwner::PROJECT_NO_PROJECT,
453453
),
454-
phutil_render_html('em', array(), '(No Project)'));
454+
phutil_tag('em', array(), '(No Project)'));
455455
$col_header = 'Project';
456456
$header = 'Open Tasks by Project and Priority ('.$date.')';
457457
break;

src/applications/phame/skins/PhameBasicBlogSkin.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ protected function renderOlderPageLink() {
166166
if (!$uri) {
167167
return null;
168168
}
169-
return phutil_render_tag(
169+
return phutil_tag(
170170
'a',
171171
array(
172172
'class' => 'phame-page-link phame-page-older',
@@ -198,7 +198,7 @@ protected function renderNewerPageLink() {
198198
if (!$uri) {
199199
return null;
200200
}
201-
return phutil_render_tag(
201+
return phutil_tag(
202202
'a',
203203
array(
204204
'class' => 'phame-page-link phame-page-newer',

src/applications/phriction/controller/PhrictionDocumentController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ public function processRequest() {
131131
$handles[$project_phid]->renderLink().'.';
132132
}
133133

134-
$index_link = phutil_render_tag(
134+
$index_link = phutil_tag(
135135
'a',
136136
array(
137137
'href' => '/phriction/',

src/applications/phriction/controller/PhrictionNewController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public function processRequest() {
2525
$dialog = id(new AphrontDialogView())
2626
->setUser($user)
2727
->setTitle(pht('New Document'))
28-
->appendChild(phutil_render_tag('p',
28+
->appendChild(phutil_tag('p',
2929
array(),
3030
pht('Create a new document at')))
3131
->appendChild($view)

0 commit comments

Comments
 (0)