',
+ $source->getName(),
+ $value);
}
require_celerity_resource('config-options-css');
@@ -497,7 +497,7 @@ final class PhabricatorConfigEditController
array(
'class' => 'config-option-table',
),
- new PhutilSafeHTML(implode("\n", $table)));
+ $table);
}
}
diff --git a/src/applications/differential/controller/DifferentialDiffViewController.php b/src/applications/differential/controller/DifferentialDiffViewController.php
index d764f560e3..afe4847c8c 100644
--- a/src/applications/differential/controller/DifferentialDiffViewController.php
+++ b/src/applications/differential/controller/DifferentialDiffViewController.php
@@ -38,11 +38,11 @@ final class DifferentialDiffViewController extends DifferentialController {
// TODO: implmenent optgroup support in AphrontFormSelectControl?
$select = array();
- $select[] = '';
+ $select[] = hsprintf('');
$revision_data = new DifferentialRevisionListData(
DifferentialRevisionListData::QUERY_OPEN_OWNED,
@@ -50,7 +50,9 @@ final class DifferentialDiffViewController extends DifferentialController {
$revisions = $revision_data->loadRevisions();
if ($revisions) {
- $select[] = '');
}
- $select =
- '';
+ $select = phutil_tag(
+ 'select',
+ array('name' => 'revisionID'),
+ $select);
$action_form = new AphrontFormView();
$action_form
diff --git a/src/applications/files/controller/PhabricatorFileUploadController.php b/src/applications/files/controller/PhabricatorFileUploadController.php
index 94a1130ca5..cab1f145f6 100644
--- a/src/applications/files/controller/PhabricatorFileUploadController.php
+++ b/src/applications/files/controller/PhabricatorFileUploadController.php
@@ -30,13 +30,12 @@ final class PhabricatorFileUploadController extends PhabricatorFileController {
$instructions = id(new AphrontFormMarkupControl())
->setControlID($support_id)
->setControlStyle('display: none')
- ->setValue(
- '
'.
+ ->setValue(hsprintf(
+ '
%s %s
',
+ pht('Drag and Drop:'),
pht(
- 'Drag and Drop: You can also upload files by '.
- 'dragging and dropping them from your desktop onto this page or '.
- 'the Phabricator home page.').
- '
');
+ 'You can also upload files by dragging and dropping them from your '.
+ 'desktop onto this page or the Phabricator home page.')));
$form = id(new AphrontFormView())
->setFlexible(true)
diff --git a/src/applications/herald/controller/HeraldRuleController.php b/src/applications/herald/controller/HeraldRuleController.php
index f61062520d..b5fee57e90 100644
--- a/src/applications/herald/controller/HeraldRuleController.php
+++ b/src/applications/herald/controller/HeraldRuleController.php
@@ -117,9 +117,10 @@ final class HeraldRuleController extends HeraldController {
$form
->appendChild(
id(new AphrontFormMarkupControl())
- ->setValue(
- "This ${rule_type_name} rule triggers for " .
- "${content_type_name}."))
+ ->setValue(hsprintf(
+ "This %s rule triggers for %s.",
+ $rule_type_name,
+ $content_type_name)))
->appendChild(
id(new AphrontFormInsetView())
->setTitle('Conditions')
@@ -154,9 +155,9 @@ final class HeraldRuleController extends HeraldController {
'mustcapture' => true,
),
'Create New Action'))
- ->setDescription(
- phutil_safe_html(
- 'Take these actions '.$repetition_selector.' this rule matches:'))
+ ->setDescription(hsprintf(
+ 'Take these actions %s this rule matches:',
+ $repetition_selector))
->setContent(javelin_tag(
'table',
array(
diff --git a/src/applications/maniphest/controller/ManiphestTaskEditController.php b/src/applications/maniphest/controller/ManiphestTaskEditController.php
index 5b258baf8f..23fcf30bee 100644
--- a/src/applications/maniphest/controller/ManiphestTaskEditController.php
+++ b/src/applications/maniphest/controller/ManiphestTaskEditController.php
@@ -455,11 +455,8 @@ final class ManiphestTaskEditController extends ManiphestController {
));
if ($files) {
- $file_display = array();
- foreach ($files as $file) {
- $file_display[] = phutil_escape_html($file->getName());
- }
- $file_display = implode(' ', $file_display);
+ $file_display = mpull($files, 'getName');
+ $file_display = array_interleave(phutil_tag('br'), $file_display);
$form->appendChild(
id(new AphrontFormMarkupControl())
diff --git a/src/applications/paste/controller/PhabricatorPasteEditController.php b/src/applications/paste/controller/PhabricatorPasteEditController.php
index 63beb71670..29d0272209 100644
--- a/src/applications/paste/controller/PhabricatorPasteEditController.php
+++ b/src/applications/paste/controller/PhabricatorPasteEditController.php
@@ -164,10 +164,9 @@ final class PhabricatorPasteEditController extends PhabricatorPasteController {
->appendChild(
id(new AphrontFormMarkupControl())
->setLabel('Text')
- ->setValue(
- 'Paste text can not be edited. '.
- $fork_link.' to create a new paste.'
- ));
+ ->setValue(hsprintf(
+ 'Paste text can not be edited. %s to create a new paste.',
+ $fork_link)));
}
$submit = new AphrontFormSubmitControl();
diff --git a/src/applications/phortune/control/PhortuneMonthYearExpiryControl.php b/src/applications/phortune/control/PhortuneMonthYearExpiryControl.php
index a4701aa11c..b9c48cd595 100644
--- a/src/applications/phortune/control/PhortuneMonthYearExpiryControl.php
+++ b/src/applications/phortune/control/PhortuneMonthYearExpiryControl.php
@@ -80,12 +80,7 @@ final class PhortuneMonthYearExpiryControl extends AphrontFormControl {
'sigil' => 'year-input',
));
- return self::renderSingleView(
- array(
- $months_sel,
- $years_sel
- )
- );
+ return hsprintf('%s%s', $months_sel, $years_sel);
}
}
diff --git a/src/applications/settings/panel/PhabricatorSettingsPanelDisplayPreferences.php b/src/applications/settings/panel/PhabricatorSettingsPanelDisplayPreferences.php
index 97b1a21c4b..b5b4d00d35 100644
--- a/src/applications/settings/panel/PhabricatorSettingsPanelDisplayPreferences.php
+++ b/src/applications/settings/panel/PhabricatorSettingsPanelDisplayPreferences.php
@@ -122,10 +122,10 @@ EXAMPLE;
->setValue($preferences->getPreference($pref_monospaced)))
->appendChild(
id(new AphrontFormMarkupControl())
- ->setValue(
- '