Use 'Bacon Ice Cream for Breakfast' only for untitled pages

Test Plan: /

Reviewers: nh, epriestley

Reviewed By: epriestley

CC: aran, Korvin

Differential Revision: https://secure.phabricator.com/D5490
This commit is contained in:
Jakub Vrana
2013-03-30 12:46:03 -07:00
parent 0de66e9c75
commit 4741b6cefc
2 changed files with 6 additions and 6 deletions

View File

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