1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-23 15:22:41 +01:00

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
This commit is contained in:
vrana 2013-01-17 19:15:06 -08:00
parent 20768d65d5
commit 21a5956a35
11 changed files with 15 additions and 15 deletions

View file

@ -37,7 +37,7 @@ final class PhabricatorCalendarDeleteStatusController
$dialog = new AphrontDialogView(); $dialog = new AphrontDialogView();
$dialog->setUser($user); $dialog->setUser($user);
$dialog->setTitle(pht('Really delete status?')); $dialog->setTitle(pht('Really delete status?'));
$dialog->appendChild(phutil_render_tag( $dialog->appendChild(phutil_tag(
'p', 'p',
array(), array(),
pht('Permanently delete this status? This action can not be undone.') pht('Permanently delete this status? This action can not be undone.')

View file

@ -22,7 +22,7 @@ final class PhabricatorConfigIssueViewController
->setTitle(pht('Issue Resolved')) ->setTitle(pht('Issue Resolved'))
->appendChild(pht('This setup issue has been resolved. ')) ->appendChild(pht('This setup issue has been resolved. '))
->appendChild( ->appendChild(
phutil_render_tag( phutil_tag(
'a', 'a',
array( array(
'href' => $this->getApplicationURI('issue/'), 'href' => $this->getApplicationURI('issue/'),

View file

@ -88,7 +88,7 @@ final class PhabricatorSetupIssueView extends AphrontView {
} }
$next = phutil_render_tag( $next = phutil_tag(
'div', 'div',
array( array(
'class' => 'setup-issue-next', 'class' => 'setup-issue-next',
@ -308,7 +308,7 @@ final class PhabricatorSetupIssueView extends AphrontView {
pht( pht(
"You can find more information about PHP configuration values in the ". "You can find more information about PHP configuration values in the ".
"%s.", "%s.",
phutil_render_tag( phutil_tag(
'a', 'a',
array( array(
'href' => 'http://php.net/manual/ini.list.php', 'href' => 'http://php.net/manual/ini.list.php',

View file

@ -153,7 +153,7 @@ final class DifferentialRevisionViewController extends DifferentialController {
$reviewer_warning->setTitle(pht('No Active Reviewers')); $reviewer_warning->setTitle(pht('No Active Reviewers'));
if ($revision->getReviewers()) { if ($revision->getReviewers()) {
$reviewer_warning->appendChild( $reviewer_warning->appendChild(
phutil_render_tag( phutil_tag(
'p', 'p',
array(), array(),
pht('All specified reviewers are disabled and this revision '. pht('All specified reviewers are disabled and this revision '.
@ -161,7 +161,7 @@ final class DifferentialRevisionViewController extends DifferentialController {
)); ));
} else { } else {
$reviewer_warning->appendChild( $reviewer_warning->appendChild(
phutil_render_tag( phutil_tag(
'p', 'p',
array(), array(),
pht('This revision has no specified reviewers and needs '. pht('This revision has no specified reviewers and needs '.

View file

@ -21,7 +21,7 @@ final class DifferentialChangesetTwoUpRenderer
array( array(
'sigil' => 'context-target', 'sigil' => 'context-target',
), ),
phutil_render_tag( phutil_tag(
'td', 'td',
array( array(
'colspan' => 6, 'colspan' => 6,

View file

@ -25,7 +25,7 @@ final class PhabricatorGlobalUploadTargetView extends AphrontView {
'browseURI' => '/file/filter/my/', 'browseURI' => '/file/filter/my/',
)); ));
return phutil_render_tag( return phutil_tag(
'div', 'div',
array( array(
'id' => $instructions_id, 'id' => $instructions_id,

View file

@ -414,7 +414,7 @@ final class ManiphestReportController extends ManiphestController {
array( array(
'href' => $base_link.ManiphestTaskOwner::OWNER_UP_FOR_GRABS, 'href' => $base_link.ManiphestTaskOwner::OWNER_UP_FOR_GRABS,
), ),
phutil_render_html('em', array(), '(Up For Grabs)')); phutil_tag('em', array(), '(Up For Grabs)'));
$col_header = 'User'; $col_header = 'User';
$header = 'Open Tasks by User and Priority ('.$date.')'; $header = 'Open Tasks by User and Priority ('.$date.')';
break; break;
@ -451,7 +451,7 @@ final class ManiphestReportController extends ManiphestController {
array( array(
'href' => $base_link.ManiphestTaskOwner::PROJECT_NO_PROJECT, 'href' => $base_link.ManiphestTaskOwner::PROJECT_NO_PROJECT,
), ),
phutil_render_html('em', array(), '(No Project)')); phutil_tag('em', array(), '(No Project)'));
$col_header = 'Project'; $col_header = 'Project';
$header = 'Open Tasks by Project and Priority ('.$date.')'; $header = 'Open Tasks by Project and Priority ('.$date.')';
break; break;

View file

@ -166,7 +166,7 @@ abstract class PhameBasicBlogSkin extends PhameBlogSkin {
if (!$uri) { if (!$uri) {
return null; return null;
} }
return phutil_render_tag( return phutil_tag(
'a', 'a',
array( array(
'class' => 'phame-page-link phame-page-older', 'class' => 'phame-page-link phame-page-older',
@ -198,7 +198,7 @@ abstract class PhameBasicBlogSkin extends PhameBlogSkin {
if (!$uri) { if (!$uri) {
return null; return null;
} }
return phutil_render_tag( return phutil_tag(
'a', 'a',
array( array(
'class' => 'phame-page-link phame-page-newer', 'class' => 'phame-page-link phame-page-newer',

View file

@ -131,7 +131,7 @@ final class PhrictionDocumentController
$handles[$project_phid]->renderLink().'.'; $handles[$project_phid]->renderLink().'.';
} }
$index_link = phutil_render_tag( $index_link = phutil_tag(
'a', 'a',
array( array(
'href' => '/phriction/', 'href' => '/phriction/',

View file

@ -25,7 +25,7 @@ final class PhrictionNewController extends PhrictionController {
$dialog = id(new AphrontDialogView()) $dialog = id(new AphrontDialogView())
->setUser($user) ->setUser($user)
->setTitle(pht('New Document')) ->setTitle(pht('New Document'))
->appendChild(phutil_render_tag('p', ->appendChild(phutil_tag('p',
array(), array(),
pht('Create a new document at'))) pht('Create a new document at')))
->appendChild($view) ->appendChild($view)

View file

@ -31,7 +31,7 @@ final class PhabricatorSourceCodeView extends AphrontView {
if ($hit_limit) { if ($hit_limit) {
$content_number = ''; $content_number = '';
$content_line = phutil_render_tag( $content_line = phutil_tag(
'span', 'span',
array( array(
'class' => 'c', 'class' => 'c',