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:
parent
7b5dea94d2
commit
2763d0fe61
2 changed files with 5 additions and 2 deletions
|
@ -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());
|
||||
}
|
||||
|
|
|
@ -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(
|
||||
|
|
Loading…
Add table
Reference in a new issue