@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Unfatal "Create Repository" UI

See: <https://github.com/facebook/phabricator/issues/584>

Not all controllers in Diffusion have a DiffusionRequest.

Auditors: btrahan

+16 -11
+16 -11
src/applications/diffusion/controller/DiffusionController.php
··· 41 41 } 42 42 43 43 public function buildApplicationPage($view, array $options) { 44 - $drequest = $this->getDiffusionRequest(); 45 - $repository = $drequest->getRepository(); 46 - $error_view = $this->buildRepositoryWarning($repository); 44 + if ($this->diffusionRequest) { 45 + $drequest = $this->getDiffusionRequest(); 46 + $repository = $drequest->getRepository(); 47 + $error_view = $this->buildRepositoryWarning($repository); 47 48 48 - $views = array(); 49 - $not_inserted = true; 50 - foreach ($view as $view_object_or_array) { 51 - $views[] = $view_object_or_array; 52 - if ($not_inserted && 53 - $view_object_or_array instanceof PhabricatorCrumbsView) { 54 - $views[] = $error_view; 55 - $not_inserted = false; 49 + $views = array(); 50 + $not_inserted = true; 51 + foreach ($view as $view_object_or_array) { 52 + $views[] = $view_object_or_array; 53 + if ($not_inserted && 54 + $view_object_or_array instanceof PhabricatorCrumbsView) { 55 + $views[] = $error_view; 56 + $not_inserted = false; 57 + } 56 58 } 59 + } else { 60 + $views = $view; 57 61 } 62 + 58 63 return parent::buildApplicationPage($views, $options); 59 64 } 60 65