From 7a1d2087d46d97d245091a568595b6790546c1d7 Mon Sep 17 00:00:00 2001 From: Chad Little Date: Sat, 2 Apr 2016 13:08:05 -0700 Subject: [PATCH] Update Tokens for newPage Summary: Minor, moves to `newPage` Test Plan: Test both pages, still work Reviewers: epriestley Reviewed By: epriestley Subscribers: Korvin Differential Revision: https://secure.phabricator.com/D15582 --- .../controller/PhabricatorTokenGivenController.php | 10 ++++------ .../controller/PhabricatorTokenLeaderController.php | 9 ++++----- 2 files changed, 8 insertions(+), 11 deletions(-) diff --git a/src/applications/tokens/controller/PhabricatorTokenGivenController.php b/src/applications/tokens/controller/PhabricatorTokenGivenController.php index 86318a885a..8352c35d69 100644 --- a/src/applications/tokens/controller/PhabricatorTokenGivenController.php +++ b/src/applications/tokens/controller/PhabricatorTokenGivenController.php @@ -71,12 +71,10 @@ final class PhabricatorTokenGivenController extends PhabricatorTokenController { $nav->appendChild($box); $nav->appendChild($pager); - return $this->buildApplicationPage( - $nav, - array( - 'title' => $title, - )); + return $this->newPage() + ->setTitle($title) + ->appendChild($nav); + } - } diff --git a/src/applications/tokens/controller/PhabricatorTokenLeaderController.php b/src/applications/tokens/controller/PhabricatorTokenLeaderController.php index 53cda0f484..bfef3cd8cf 100644 --- a/src/applications/tokens/controller/PhabricatorTokenLeaderController.php +++ b/src/applications/tokens/controller/PhabricatorTokenLeaderController.php @@ -55,11 +55,10 @@ final class PhabricatorTokenLeaderController $nav->appendChild($box); $nav->appendChild($pager); - return $this->buildApplicationPage( - $nav, - array( - 'title' => $title, - )); + return $this->newPage() + ->setTitle($title) + ->appendChild($nav); + } }