1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-30 09:20:58 +01:00

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

View file

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