1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2025-01-10 14:51:06 +01:00

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
This commit is contained in:
Chad Little 2016-04-02 12:38:28 -07:00
parent b5f0b58987
commit 5a1990487d
2 changed files with 7 additions and 11 deletions

View file

@ -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;
}

View file

@ -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() {