From 891661fbe7e7e14057aee3ef8903069e84f4046c Mon Sep 17 00:00:00 2001 From: Chad Little Date: Sat, 2 Apr 2016 12:49:05 -0700 Subject: [PATCH] Update PhrictionDocument to newPage Summary: Little straggler here, updates to `newPage` Test Plan: Review a document, no visibile changes Reviewers: epriestley Reviewed By: epriestley Subscribers: Korvin Differential Revision: https://secure.phabricator.com/D15580 --- .../controller/PhrictionDocumentController.php | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/src/applications/phriction/controller/PhrictionDocumentController.php b/src/applications/phriction/controller/PhrictionDocumentController.php index 85bfa1a660..7601888987 100644 --- a/src/applications/phriction/controller/PhrictionDocumentController.php +++ b/src/applications/phriction/controller/PhrictionDocumentController.php @@ -230,16 +230,14 @@ final class PhrictionDocumentController $core_content, )); - return $this->buildApplicationPage( - array( - $crumbs->render(), + return $this->newPage() + ->setTitle($page_title) + ->setCrumbs($crumbs) + ->setPageObjectPHIDs(array($document->getPHID())) + ->appendChild(array( $page_content, $prop_list, $children, - ), - array( - 'pageObjects' => array($document->getPHID()), - 'title' => $page_title, )); }