Minor, unfatal the 404 page after new menu stuff.
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user