diff --git a/src/applications/home/engine/PhabricatorHomeProfileMenuEngine.php b/src/applications/home/engine/PhabricatorHomeProfileMenuEngine.php --- a/src/applications/home/engine/PhabricatorHomeProfileMenuEngine.php +++ b/src/applications/home/engine/PhabricatorHomeProfileMenuEngine.php @@ -11,6 +11,24 @@ return "/home/menu/{$path}"; } + protected function buildItemViewContent( + PhabricatorProfileMenuItemConfiguration $item) { + $viewer = $this->getViewer(); + + // Add content to the document so that you can drag-and-drop files onto + // the home page or any home dashboard to upload them. + + $upload = id(new PhabricatorGlobalUploadTargetView()) + ->setUser($viewer); + + $content = parent::buildItemViewContent($item); + + return array( + $content, + $upload, + ); + } + protected function getBuiltinProfileItems($object) { $viewer = $this->getViewer(); $items = array(); diff --git a/src/applications/home/view/PHUIHomeView.php b/src/applications/home/view/PHUIHomeView.php --- a/src/applications/home/view/PHUIHomeView.php +++ b/src/applications/home/view/PHUIHomeView.php @@ -12,15 +12,6 @@ } protected function getTagContent() { - $viewer = $this->getViewer(); - - return array( - $this->buildMainResponse(), - id(new PhabricatorGlobalUploadTargetView())->setUser($viewer), - ); - } - - private function buildMainResponse() { require_celerity_resource('phabricator-dashboard-css'); $viewer = $this->getViewer(); diff --git a/src/applications/search/engine/PhabricatorProfileMenuEngine.php b/src/applications/search/engine/PhabricatorProfileMenuEngine.php --- a/src/applications/search/engine/PhabricatorProfileMenuEngine.php +++ b/src/applications/search/engine/PhabricatorProfileMenuEngine.php @@ -685,7 +685,7 @@ ->setURI($this->getConfigureURI()); } - private function buildItemViewContent( + protected function buildItemViewContent( PhabricatorProfileMenuItemConfiguration $item) { return $item->newPageContent(); }