Replace some hsprintf() by phutil_tag()
Test Plan: Looked at a diff with inline comment. Reviewers: epriestley Reviewed By: epriestley CC: Korvin, epriestley, aran Differential Revision: https://secure.phabricator.com/D7549
This commit is contained in:
@@ -246,8 +246,9 @@ abstract class PhabricatorController extends AphrontController {
|
||||
$view = new PhabricatorStandardPageView();
|
||||
$view->setRequest($request);
|
||||
$view->setController($this);
|
||||
$view->appendChild(hsprintf(
|
||||
'<div style="padding: 2em 0;">%s</div>',
|
||||
$view->appendChild(phutil_tag(
|
||||
'div',
|
||||
array('style' => 'padding: 2em 0;'),
|
||||
$response->buildResponseString()));
|
||||
$page_response = new AphrontWebpageResponse();
|
||||
$page_response->setContent($view->render());
|
||||
|
||||
Reference in New Issue
Block a user