diff --git a/src/applications/base/controller/PhabricatorController.php b/src/applications/base/controller/PhabricatorController.php index 45ba5dc069..85dcf05b48 100644 --- a/src/applications/base/controller/PhabricatorController.php +++ b/src/applications/base/controller/PhabricatorController.php @@ -147,8 +147,12 @@ abstract class PhabricatorController extends AphrontController { public function buildApplicationPage($view, array $options) { $page = $this->buildStandardPageView(); + $title = PhabricatorEnv::getEnvConfig('phabricator.serious-business') ? + 'Phabricator' : + pht('Bacon Ice Cream for Breakfast'); + $application = $this->getCurrentApplication(); - $page->setTitle(idx($options, 'title')); + $page->setTitle(idx($options, 'title', $title)); if ($application) { $page->setApplicationName($application->getName()); if ($application->getTitleGlyph()) { diff --git a/src/applications/directory/controller/PhabricatorDirectoryMainController.php b/src/applications/directory/controller/PhabricatorDirectoryMainController.php index 63f70ccc0b..52c347f56c 100644 --- a/src/applications/directory/controller/PhabricatorDirectoryMainController.php +++ b/src/applications/directory/controller/PhabricatorDirectoryMainController.php @@ -65,14 +65,10 @@ final class PhabricatorDirectoryMainController $nav->appendChild($content); $nav->appendChild(new PhabricatorGlobalUploadTargetView()); - $title = PhabricatorEnv::getEnvConfig('phabricator.serious-business') ? - 'Phabricator' : - pht('Bacon Ice Cream for Breakfast'); - return $this->buildApplicationPage( $nav, array( - 'title' => $title, + 'title' => 'Phabricator', 'device' => true, )); }