From 21a5956a35534bc142b7e2c6d58b0d898bd64a54 Mon Sep 17 00:00:00 2001 From: vrana Date: Thu, 17 Jan 2013 19:15:06 -0800 Subject: [PATCH] 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 --- .../controller/PhabricatorCalendarDeleteStatusController.php | 2 +- .../controller/PhabricatorConfigIssueViewController.php | 2 +- src/applications/config/view/PhabricatorSetupIssueView.php | 4 ++-- .../controller/DifferentialRevisionViewController.php | 4 ++-- .../render/DifferentialChangesetTwoUpRenderer.php | 2 +- .../files/view/PhabricatorGlobalUploadTargetView.php | 2 +- .../maniphest/controller/ManiphestReportController.php | 4 ++-- src/applications/phame/skins/PhameBasicBlogSkin.php | 4 ++-- .../phriction/controller/PhrictionDocumentController.php | 2 +- .../phriction/controller/PhrictionNewController.php | 2 +- src/view/layout/PhabricatorSourceCodeView.php | 2 +- 11 files changed, 15 insertions(+), 15 deletions(-) diff --git a/src/applications/calendar/controller/PhabricatorCalendarDeleteStatusController.php b/src/applications/calendar/controller/PhabricatorCalendarDeleteStatusController.php index 133b300321..e7823f38fa 100644 --- a/src/applications/calendar/controller/PhabricatorCalendarDeleteStatusController.php +++ b/src/applications/calendar/controller/PhabricatorCalendarDeleteStatusController.php @@ -37,7 +37,7 @@ final class PhabricatorCalendarDeleteStatusController $dialog = new AphrontDialogView(); $dialog->setUser($user); $dialog->setTitle(pht('Really delete status?')); - $dialog->appendChild(phutil_render_tag( + $dialog->appendChild(phutil_tag( 'p', array(), pht('Permanently delete this status? This action can not be undone.') diff --git a/src/applications/config/controller/PhabricatorConfigIssueViewController.php b/src/applications/config/controller/PhabricatorConfigIssueViewController.php index 9df5f7a5c3..ddac26922c 100644 --- a/src/applications/config/controller/PhabricatorConfigIssueViewController.php +++ b/src/applications/config/controller/PhabricatorConfigIssueViewController.php @@ -22,7 +22,7 @@ final class PhabricatorConfigIssueViewController ->setTitle(pht('Issue Resolved')) ->appendChild(pht('This setup issue has been resolved. ')) ->appendChild( - phutil_render_tag( + phutil_tag( 'a', array( 'href' => $this->getApplicationURI('issue/'), diff --git a/src/applications/config/view/PhabricatorSetupIssueView.php b/src/applications/config/view/PhabricatorSetupIssueView.php index 645999f190..5ac904e99a 100644 --- a/src/applications/config/view/PhabricatorSetupIssueView.php +++ b/src/applications/config/view/PhabricatorSetupIssueView.php @@ -88,7 +88,7 @@ final class PhabricatorSetupIssueView extends AphrontView { } - $next = phutil_render_tag( + $next = phutil_tag( 'div', array( 'class' => 'setup-issue-next', @@ -308,7 +308,7 @@ final class PhabricatorSetupIssueView extends AphrontView { pht( "You can find more information about PHP configuration values in the ". "%s.", - phutil_render_tag( + phutil_tag( 'a', array( 'href' => 'http://php.net/manual/ini.list.php', diff --git a/src/applications/differential/controller/DifferentialRevisionViewController.php b/src/applications/differential/controller/DifferentialRevisionViewController.php index 7f6d6057c3..9b5edc1077 100644 --- a/src/applications/differential/controller/DifferentialRevisionViewController.php +++ b/src/applications/differential/controller/DifferentialRevisionViewController.php @@ -153,7 +153,7 @@ final class DifferentialRevisionViewController extends DifferentialController { $reviewer_warning->setTitle(pht('No Active Reviewers')); if ($revision->getReviewers()) { $reviewer_warning->appendChild( - phutil_render_tag( + phutil_tag( 'p', array(), pht('All specified reviewers are disabled and this revision '. @@ -161,7 +161,7 @@ final class DifferentialRevisionViewController extends DifferentialController { )); } else { $reviewer_warning->appendChild( - phutil_render_tag( + phutil_tag( 'p', array(), pht('This revision has no specified reviewers and needs '. diff --git a/src/applications/differential/render/DifferentialChangesetTwoUpRenderer.php b/src/applications/differential/render/DifferentialChangesetTwoUpRenderer.php index 74287042a8..337dd9a625 100644 --- a/src/applications/differential/render/DifferentialChangesetTwoUpRenderer.php +++ b/src/applications/differential/render/DifferentialChangesetTwoUpRenderer.php @@ -21,7 +21,7 @@ final class DifferentialChangesetTwoUpRenderer array( 'sigil' => 'context-target', ), - phutil_render_tag( + phutil_tag( 'td', array( 'colspan' => 6, diff --git a/src/applications/files/view/PhabricatorGlobalUploadTargetView.php b/src/applications/files/view/PhabricatorGlobalUploadTargetView.php index 6b8a0f566a..01eb2902b1 100644 --- a/src/applications/files/view/PhabricatorGlobalUploadTargetView.php +++ b/src/applications/files/view/PhabricatorGlobalUploadTargetView.php @@ -25,7 +25,7 @@ final class PhabricatorGlobalUploadTargetView extends AphrontView { 'browseURI' => '/file/filter/my/', )); - return phutil_render_tag( + return phutil_tag( 'div', array( 'id' => $instructions_id, diff --git a/src/applications/maniphest/controller/ManiphestReportController.php b/src/applications/maniphest/controller/ManiphestReportController.php index cd77f4da3e..4b1bf10775 100644 --- a/src/applications/maniphest/controller/ManiphestReportController.php +++ b/src/applications/maniphest/controller/ManiphestReportController.php @@ -414,7 +414,7 @@ final class ManiphestReportController extends ManiphestController { array( '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'; $header = 'Open Tasks by User and Priority ('.$date.')'; break; @@ -451,7 +451,7 @@ final class ManiphestReportController extends ManiphestController { array( 'href' => $base_link.ManiphestTaskOwner::PROJECT_NO_PROJECT, ), - phutil_render_html('em', array(), '(No Project)')); + phutil_tag('em', array(), '(No Project)')); $col_header = 'Project'; $header = 'Open Tasks by Project and Priority ('.$date.')'; break; diff --git a/src/applications/phame/skins/PhameBasicBlogSkin.php b/src/applications/phame/skins/PhameBasicBlogSkin.php index 2e1e2424d4..74d70f4f52 100644 --- a/src/applications/phame/skins/PhameBasicBlogSkin.php +++ b/src/applications/phame/skins/PhameBasicBlogSkin.php @@ -166,7 +166,7 @@ abstract class PhameBasicBlogSkin extends PhameBlogSkin { if (!$uri) { return null; } - return phutil_render_tag( + return phutil_tag( 'a', array( 'class' => 'phame-page-link phame-page-older', @@ -198,7 +198,7 @@ abstract class PhameBasicBlogSkin extends PhameBlogSkin { if (!$uri) { return null; } - return phutil_render_tag( + return phutil_tag( 'a', array( 'class' => 'phame-page-link phame-page-newer', diff --git a/src/applications/phriction/controller/PhrictionDocumentController.php b/src/applications/phriction/controller/PhrictionDocumentController.php index 48e07a6de5..f3c89e9c1c 100644 --- a/src/applications/phriction/controller/PhrictionDocumentController.php +++ b/src/applications/phriction/controller/PhrictionDocumentController.php @@ -131,7 +131,7 @@ final class PhrictionDocumentController $handles[$project_phid]->renderLink().'.'; } - $index_link = phutil_render_tag( + $index_link = phutil_tag( 'a', array( 'href' => '/phriction/', diff --git a/src/applications/phriction/controller/PhrictionNewController.php b/src/applications/phriction/controller/PhrictionNewController.php index 4466600edc..02519dbae7 100644 --- a/src/applications/phriction/controller/PhrictionNewController.php +++ b/src/applications/phriction/controller/PhrictionNewController.php @@ -25,7 +25,7 @@ final class PhrictionNewController extends PhrictionController { $dialog = id(new AphrontDialogView()) ->setUser($user) ->setTitle(pht('New Document')) - ->appendChild(phutil_render_tag('p', + ->appendChild(phutil_tag('p', array(), pht('Create a new document at'))) ->appendChild($view) diff --git a/src/view/layout/PhabricatorSourceCodeView.php b/src/view/layout/PhabricatorSourceCodeView.php index 6705024e8a..49768fc1f8 100644 --- a/src/view/layout/PhabricatorSourceCodeView.php +++ b/src/view/layout/PhabricatorSourceCodeView.php @@ -31,7 +31,7 @@ final class PhabricatorSourceCodeView extends AphrontView { if ($hit_limit) { $content_number = ''; - $content_line = phutil_render_tag( + $content_line = phutil_tag( 'span', array( 'class' => 'c',