Page MenuHomePhabricator

D17247.diff
No OneTemporary

D17247.diff

diff --git a/src/applications/home/controller/PhabricatorHomeMenuItemController.php b/src/applications/home/controller/PhabricatorHomeMenuItemController.php
--- a/src/applications/home/controller/PhabricatorHomeMenuItemController.php
+++ b/src/applications/home/controller/PhabricatorHomeMenuItemController.php
@@ -7,8 +7,10 @@
$viewer = $this->getViewer();
$type = $request->getURIData('type');
$custom_phid = null;
+ $menu = PhabricatorProfileMenuEngine::MENU_GLOBAL;
if ($type == 'personal') {
$custom_phid = $viewer->getPHID();
+ $menu = PhabricatorProfileMenuEngine::MENU_PERSONAL;
}
$application = 'PhabricatorHomeApplication';
@@ -21,7 +23,9 @@
$engine = id(new PhabricatorHomeProfileMenuEngine())
->setProfileObject($home_app)
->setCustomPHID($custom_phid)
- ->setController($this);
+ ->setMenuType($menu)
+ ->setController($this)
+ ->setShowNavigation(false);
return $engine->buildResponse();
}

File Metadata

Mime Type
text/plain
Expires
Wed, Jan 22, 9:17 AM (4 h, 13 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7027663
Default Alt Text
D17247.diff (1001 B)

Event Timeline