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:
@@ -14,15 +14,14 @@ final class PhabricatorXHPASTViewFramesetController
|
||||
|
||||
$response = new AphrontWebpageResponse();
|
||||
$response->setFrameable(true);
|
||||
$response->setContent(hsprintf(
|
||||
'<frameset cols="33%%, 34%%, 33%%">'.
|
||||
'<frame src="/xhpast/input/%s/" />'.
|
||||
'<frame src="/xhpast/tree/%s/" />'.
|
||||
'<frame src="/xhpast/stream/%s/" />'.
|
||||
'</frameset>',
|
||||
$id,
|
||||
$id,
|
||||
$id));
|
||||
$response->setContent(phutil_tag(
|
||||
'frameset',
|
||||
array('cols' => '33%, 34%, 33%'),
|
||||
array(
|
||||
phutil_tag('frame', array('src' => "/xhpast/input/{$id}/")),
|
||||
phutil_tag('frame', array('src' => "/xhpast/tree/{$id}/")),
|
||||
phutil_tag('frame', array('src' => "/xhpast/stream/{$id}/")),
|
||||
)));
|
||||
|
||||
return $response;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user