mirror of
https://we.phorge.it/source/phorge.git
synced 2025-01-04 20:01:00 +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:
parent
0de66e9c75
commit
4741b6cefc
2 changed files with 6 additions and 6 deletions
|
@ -147,8 +147,12 @@ abstract class PhabricatorController extends AphrontController {
|
||||||
public function buildApplicationPage($view, array $options) {
|
public function buildApplicationPage($view, array $options) {
|
||||||
$page = $this->buildStandardPageView();
|
$page = $this->buildStandardPageView();
|
||||||
|
|
||||||
|
$title = PhabricatorEnv::getEnvConfig('phabricator.serious-business') ?
|
||||||
|
'Phabricator' :
|
||||||
|
pht('Bacon Ice Cream for Breakfast');
|
||||||
|
|
||||||
$application = $this->getCurrentApplication();
|
$application = $this->getCurrentApplication();
|
||||||
$page->setTitle(idx($options, 'title'));
|
$page->setTitle(idx($options, 'title', $title));
|
||||||
if ($application) {
|
if ($application) {
|
||||||
$page->setApplicationName($application->getName());
|
$page->setApplicationName($application->getName());
|
||||||
if ($application->getTitleGlyph()) {
|
if ($application->getTitleGlyph()) {
|
||||||
|
|
|
@ -65,14 +65,10 @@ final class PhabricatorDirectoryMainController
|
||||||
$nav->appendChild($content);
|
$nav->appendChild($content);
|
||||||
$nav->appendChild(new PhabricatorGlobalUploadTargetView());
|
$nav->appendChild(new PhabricatorGlobalUploadTargetView());
|
||||||
|
|
||||||
$title = PhabricatorEnv::getEnvConfig('phabricator.serious-business') ?
|
|
||||||
'Phabricator' :
|
|
||||||
pht('Bacon Ice Cream for Breakfast');
|
|
||||||
|
|
||||||
return $this->buildApplicationPage(
|
return $this->buildApplicationPage(
|
||||||
$nav,
|
$nav,
|
||||||
array(
|
array(
|
||||||
'title' => $title,
|
'title' => 'Phabricator',
|
||||||
'device' => true,
|
'device' => true,
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue