Page MenuHomestyx hydra

No OneTemporary

diff --git a/src/applications/dashboard/engine/PhabricatorDashboardPortalProfileMenuEngine.php b/src/applications/dashboard/engine/PhabricatorDashboardPortalProfileMenuEngine.php
index 9f8afc74dc..8265b306b1 100644
--- a/src/applications/dashboard/engine/PhabricatorDashboardPortalProfileMenuEngine.php
+++ b/src/applications/dashboard/engine/PhabricatorDashboardPortalProfileMenuEngine.php
@@ -1,52 +1,52 @@
<?php
final class PhabricatorDashboardPortalProfileMenuEngine
extends PhabricatorProfileMenuEngine {
protected function isMenuEngineConfigurable() {
return true;
}
protected function isMenuEnginePersonalizable() {
return false;
}
public function getItemURI($path) {
$portal = $this->getProfileObject();
return $portal->getURI().$path;
}
protected function getBuiltinProfileItems($object) {
$items = array();
$items[] = $this->newDividerItem('tail');
$items[] = $this->newManageItem();
$items[] = $this->newItem()
->setMenuItemKey(PhabricatorDashboardPortalMenuItem::MENUITEMKEY)
->setBuiltinKey('manage')
->setIsTailItem(true);
return $items;
}
protected function newNoMenuItemsView(array $items) {
$object = $this->getProfileObject();
$builtins = $this->getBuiltinProfileItems($object);
if (count($items) <= count($builtins)) {
return $this->newEmptyView(
pht('New Portal'),
pht('Use "Edit Menu" to add menu items to this portal.'));
} else {
- return $this->newEmptyValue(
+ return $this->newNoContentView(
pht('No Portal Content'),
pht(
'None of the visible menu items in this portal can render any '.
'content.'));
}
}
}

File Metadata

Mime Type
text/x-diff
Expires
Mon, Nov 25, 12:28 AM (1 d, 20 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1095
Default Alt Text
(1 KB)

Event Timeline