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())
|
$menu = id(new PhabricatorMainMenuView())
|
||||||
->setUser($request->getUser())
|
->setUser($request->getUser())
|
||||||
->setController($this->getController())
|
|
||||||
->setDefaultSearchScope($this->getSearchDefaultScope());
|
->setDefaultSearchScope($this->getSearchDefaultScope());
|
||||||
|
|
||||||
|
if ($this->getController()) {
|
||||||
|
$menu->setController($this->getController());
|
||||||
|
}
|
||||||
|
|
||||||
if ($this->getApplicationMenu()) {
|
if ($this->getApplicationMenu()) {
|
||||||
$menu->setApplicationMenu($this->getApplicationMenu());
|
$menu->setApplicationMenu($this->getApplicationMenu());
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -222,7 +222,7 @@ final class PhabricatorMainMenuView extends AphrontView {
|
|||||||
->setName(pht('Phabricator Home'))
|
->setName(pht('Phabricator Home'))
|
||||||
->setHref('/')
|
->setHref('/')
|
||||||
->appendChild($this->renderMenuIcon('logo-light-large')));
|
->appendChild($this->renderMenuIcon('logo-light-large')));
|
||||||
if ($controller->getCurrentApplication()) {
|
if ($controller && $controller->getCurrentApplication()) {
|
||||||
$application = $controller->getCurrentApplication();
|
$application = $controller->getCurrentApplication();
|
||||||
$icon = $application->getIconName().'-light-large';
|
$icon = $application->getIconName().'-light-large';
|
||||||
$view->addMenuItem(
|
$view->addMenuItem(
|
||||||
|
|||||||
Reference in New Issue
Block a user