diff --git a/src/applications/base/controller/PhabricatorController.php b/src/applications/base/controller/PhabricatorController.php --- a/src/applications/base/controller/PhabricatorController.php +++ b/src/applications/base/controller/PhabricatorController.php @@ -627,25 +627,4 @@ return $this->delegateToController($controller); } - -/* -( Deprecated )--------------------------------------------------------- */ - - - /** - * DEPRECATED. Use @{method:newPage}. - */ - public function buildStandardPageView() { - return $this->newPage(); - } - - - /** - * DEPRECATED. Use @{method:newPage}. - */ - public function buildStandardPageResponse($view, array $data) { - $page = $this->buildStandardPageView(); - $page->appendChild($view); - return $page->produceAphrontResponse(); - } - } diff --git a/src/applications/phpast/controller/PhabricatorXHPASTViewController.php b/src/applications/phpast/controller/PhabricatorXHPASTViewController.php --- a/src/applications/phpast/controller/PhabricatorXHPASTViewController.php +++ b/src/applications/phpast/controller/PhabricatorXHPASTViewController.php @@ -1,18 +1,4 @@ buildStandardPageView(); - - $page->setApplicationName('XHPASTView'); - $page->setBaseURI('/xhpast/'); - $page->setTitle(idx($data, 'title')); - $page->setGlyph("\xE2\x96\xA0"); - $page->appendChild($view); - - $response = new AphrontWebpageResponse(); - return $response->setContent($page->render()); - } - } diff --git a/src/applications/phpast/controller/PhabricatorXHPASTViewFrameController.php b/src/applications/phpast/controller/PhabricatorXHPASTViewFrameController.php --- a/src/applications/phpast/controller/PhabricatorXHPASTViewFrameController.php +++ b/src/applications/phpast/controller/PhabricatorXHPASTViewFrameController.php @@ -10,17 +10,18 @@ public function handleRequest(AphrontRequest $request) { $id = $request->getURIData('id'); - return $this->buildStandardPageResponse( - phutil_tag( + return $this->newPage() + ->setApplicationName('XHPASTView') + ->setBaseURI('/xhpast/') + ->setTitle(pht('XHPAST View')) + ->setGlyph("\xE2\x96\xA0") + ->appendChild(phutil_tag( 'iframe', array( 'src' => "/xhpast/frameset/{$id}/", 'frameborder' => '0', 'style' => 'width: 100%; height: 800px;', '', - )), - array( - 'title' => pht('XHPAST View'), - )); + ))); } }