1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2025-02-02 01:48:23 +01:00

Minor, unfatal the 404 page after new menu stuff.

This commit is contained in:
epriestley 2012-12-07 15:29:41 -08:00
parent 7b5dea94d2
commit 2763d0fe61
2 changed files with 5 additions and 2 deletions

View file

@ -154,9 +154,12 @@ final class PhabricatorStandardPageView extends PhabricatorBarePageView {
$menu = id(new PhabricatorMainMenuView())
->setUser($request->getUser())
->setController($this->getController())
->setDefaultSearchScope($this->getSearchDefaultScope());
if ($this->getController()) {
$menu->setController($this->getController());
}
if ($this->getApplicationMenu()) {
$menu->setApplicationMenu($this->getApplicationMenu());
}

View file

@ -222,7 +222,7 @@ final class PhabricatorMainMenuView extends AphrontView {
->setName(pht('Phabricator Home'))
->setHref('/')
->appendChild($this->renderMenuIcon('logo-light-large')));
if ($controller->getCurrentApplication()) {
if ($controller && $controller->getCurrentApplication()) {
$application = $controller->getCurrentApplication();
$icon = $application->getIconName().'-light-large';
$view->addMenuItem(