mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-10 17:02:41 +01:00
Convert phutil_render_tag(X, Y, phutil_render_tag(...)) to phutil_render_html
Summary: Created with spatch: lang=diff - phutil_render_tag + phutil_render_html (X, Y, phutil_render_tag(...)) - phutil_render_tag + phutil_render_html (X, Y, phutil_render_html(...)) Test Plan: Loaded homepage Reviewers: epriestley CC: aran, Korvin Differential Revision: https://secure.phabricator.com/D4502
This commit is contained in:
parent
3c1b8df8ae
commit
9670f0c636
10 changed files with 13 additions and 13 deletions
|
@ -137,7 +137,7 @@ final class PhabricatorConfigEditController
|
|||
array(
|
||||
'class' => 'phabricator-remarkup',
|
||||
),
|
||||
$engine->getOutput($option, 'description'));
|
||||
phutil_safe_html($engine->getOutput($option, 'description')));
|
||||
|
||||
$form
|
||||
->setUser($user)
|
||||
|
|
|
@ -337,7 +337,7 @@ final class DifferentialChangesetTwoUpRenderer
|
|||
$vs = 0) {
|
||||
$old = null;
|
||||
if ($old_file) {
|
||||
$old = phutil_render_tag(
|
||||
$old = phutil_tag(
|
||||
'div',
|
||||
array(
|
||||
'class' => 'differential-image-stage'
|
||||
|
@ -353,7 +353,7 @@ final class DifferentialChangesetTwoUpRenderer
|
|||
|
||||
$new = null;
|
||||
if ($new_file) {
|
||||
$new = phutil_render_tag(
|
||||
$new = phutil_tag(
|
||||
'div',
|
||||
array(
|
||||
'class' => 'differential-image-stage'
|
||||
|
|
|
@ -70,7 +70,7 @@ final class PhamePostPublishController extends PhameController {
|
|||
|
||||
// TODO: Clean up this CSS.
|
||||
|
||||
return phutil_render_tag(
|
||||
return phutil_tag(
|
||||
'div',
|
||||
array(
|
||||
'style' => 'text-align: center; padding: 1em;',
|
||||
|
|
|
@ -59,7 +59,7 @@ final class PhamePostView extends AphrontView {
|
|||
|
||||
public function renderTitle() {
|
||||
$href = $this->getSkin()->getURI('post/'.$this->getPost()->getPhameTitle());
|
||||
return phutil_render_tag(
|
||||
return phutil_tag(
|
||||
'h2',
|
||||
array(
|
||||
'class' => 'phame-post-title',
|
||||
|
|
|
@ -401,7 +401,7 @@ final class PhabricatorSlowvotePollController
|
|||
|
||||
$profile_image = $handle->getImageURI();
|
||||
|
||||
$user_markup[] = phutil_render_tag(
|
||||
$user_markup[] = phutil_tag(
|
||||
'a',
|
||||
array(
|
||||
'href' => $handle->getURI(),
|
||||
|
|
|
@ -47,7 +47,7 @@ final class PhabricatorHeaderView extends AphrontView {
|
|||
self::renderSingleView($this->tags));
|
||||
}
|
||||
|
||||
return phutil_render_tag(
|
||||
return phutil_tag(
|
||||
'div',
|
||||
array(
|
||||
'class' => 'phabricator-header-shell',
|
||||
|
|
|
@ -42,7 +42,7 @@ final class PhabricatorPinboardItemView extends AphrontView {
|
|||
$header);
|
||||
}
|
||||
|
||||
$image = phutil_render_tag(
|
||||
$image = phutil_tag(
|
||||
'a',
|
||||
array(
|
||||
'href' => $this->uri,
|
||||
|
|
|
@ -66,17 +66,17 @@ final class PhabricatorSourceCodeView extends AphrontView {
|
|||
$classes[] = 'remarkup-code';
|
||||
$classes[] = 'PhabricatorMonospaced';
|
||||
|
||||
return phutil_render_tag(
|
||||
return phutil_tag(
|
||||
'div',
|
||||
array(
|
||||
'class' => 'phabricator-source-code-container',
|
||||
),
|
||||
phutil_render_tag(
|
||||
phutil_tag(
|
||||
'table',
|
||||
array(
|
||||
'class' => implode(' ', $classes),
|
||||
),
|
||||
implode('', $rows)));
|
||||
new PhutilSafeHTML(implode('', $rows))));
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -117,7 +117,7 @@ final class PhabricatorTimelineEventView extends AphrontView {
|
|||
if ($this->icon) {
|
||||
$title_classes[] = 'phabricator-timeline-title-with-icon';
|
||||
|
||||
$icon = phutil_render_tag(
|
||||
$icon = phutil_tag(
|
||||
'span',
|
||||
array(
|
||||
'class' => 'phabricator-timeline-icon-fill',
|
||||
|
|
|
@ -271,7 +271,7 @@ final class PhabricatorMainMenuView extends AphrontView {
|
|||
}
|
||||
|
||||
private function renderPhabricatorLogo() {
|
||||
return phutil_render_tag(
|
||||
return phutil_tag(
|
||||
'a',
|
||||
array(
|
||||
'class' => 'phabricator-main-menu-logo',
|
||||
|
|
Loading…
Reference in a new issue