Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2686649
D25634.1734719435.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Advanced/Developer...
View Handle
View Hovercard
Size
2 KB
Referenced Files
None
Subscribers
None
D25634.1734719435.diff
View Options
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 @@
<?php
abstract class PhabricatorXHPASTViewController extends PhabricatorController {
-
- public function buildStandardPageResponse($view, array $data) {
- $page = $this->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'),
- ));
+ )));
}
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Dec 20, 18:30 (16 h, 30 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1019046
Default Alt Text
D25634.1734719435.diff (2 KB)
Attached To
Mode
D25634: Remove deprecated buildStandardPage* method calls
Attached
Detach File
Event Timeline
Log In to Comment