Convert AphrontDialogView to safe HTML
Summary: Done by searching for `AphrontDialogView` and then `appendChild()`. Also added some `pht()`. Test Plan: None. Reviewers: epriestley Reviewed By: epriestley CC: aran, Korvin Differential Revision: https://secure.phabricator.com/D4882
This commit is contained in:
@@ -37,9 +37,8 @@ extends PhabricatorOAuthClientBaseController {
|
||||
$dialog = new AphrontDialogView();
|
||||
$dialog->setUser($current_user);
|
||||
$dialog->setTitle($title);
|
||||
$dialog->appendChild(
|
||||
'<p>Are you sure you want to delete this client?</p>'
|
||||
);
|
||||
$dialog->appendChild(phutil_tag('p', array(), pht(
|
||||
'Are you sure you want to delete this client?')));
|
||||
$dialog->addSubmitButton();
|
||||
$dialog->addCancelButton($client->getEditURI());
|
||||
return id(new AphrontDialogResponse())->setDialog($dialog);
|
||||
|
||||
Reference in New Issue
Block a user