From 5a1990487df74cae2d1a09fec736249ef2b519d2 Mon Sep 17 00:00:00 2001 From: Chad Little Date: Sat, 2 Apr 2016 12:38:28 -0700 Subject: [PATCH] Update Conpherence to newPage Summary: Updates Conpherence pages to use `newPage` Test Plan: View a Room, view list of joined rooms. Reviewers: epriestley Reviewed By: epriestley Subscribers: Korvin Differential Revision: https://secure.phabricator.com/D15578 --- .../controller/ConpherenceListController.php | 8 +++----- .../controller/ConpherenceViewController.php | 10 ++++------ 2 files changed, 7 insertions(+), 11 deletions(-) diff --git a/src/applications/conpherence/controller/ConpherenceListController.php b/src/applications/conpherence/controller/ConpherenceListController.php index dbabc9b7d9..6f06a36fb0 100644 --- a/src/applications/conpherence/controller/ConpherenceListController.php +++ b/src/applications/conpherence/controller/ConpherenceListController.php @@ -127,11 +127,9 @@ final class ConpherenceListController extends ConpherenceController { $layout->setHeader($this->buildHeaderPaneContent( $conpherence, $policy_objects)); - $response = $this->buildApplicationPage( - $layout, - array( - 'title' => $title, - )); + $response = $this->newPage() + ->setTitle($title) + ->appendChild($layout); break; } diff --git a/src/applications/conpherence/controller/ConpherenceViewController.php b/src/applications/conpherence/controller/ConpherenceViewController.php index ca2a87b6d2..2f01979df6 100644 --- a/src/applications/conpherence/controller/ConpherenceViewController.php +++ b/src/applications/conpherence/controller/ConpherenceViewController.php @@ -131,12 +131,10 @@ final class ConpherenceViewController extends ->setLatestTransactionID($data['latest_transaction_id']) ->setRole('thread'); - return $this->buildApplicationPage( - $layout, - array( - 'title' => $title, - 'pageObjects' => array($conpherence->getPHID()), - )); + return $this->newPage() + ->setTitle($title) + ->setPageObjectPHIDs(array($conpherence->getPHID())) + ->appendChild($layout); } private function renderFormContent() {