Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F17946733
D7557.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D7557.id.diff
View Options
Index: src/applications/diffusion/controller/DiffusionBrowseController.php
===================================================================
--- src/applications/diffusion/controller/DiffusionBrowseController.php
+++ src/applications/diffusion/controller/DiffusionBrowseController.php
@@ -104,18 +104,21 @@
// TODO: Ideally, this should live in Owners and be event-triggered, but
// there's no reasonable object for it to react to right now.
- $owners_uri = id(new PhutilURI('/owners/view/search/'))
- ->setQueryParams(
- array(
- 'repository' => $drequest->getCallsign(),
- 'path' => '/'.$drequest->getPath(),
- ));
-
- $view->addAction(
- id(new PhabricatorActionView())
- ->setName(pht('Find Owners'))
- ->setHref((string)$owners_uri)
- ->setIcon('preview'));
+ $owners = 'PhabricatorApplicationOwners';
+ if (PhabricatorApplication::isClassInstalled($owners)) {
+ $owners_uri = id(new PhutilURI('/owners/view/search/'))
+ ->setQueryParams(
+ array(
+ 'repository' => $drequest->getCallsign(),
+ 'path' => '/'.$drequest->getPath(),
+ ));
+
+ $view->addAction(
+ id(new PhabricatorActionView())
+ ->setName(pht('Find Owners'))
+ ->setHref((string)$owners_uri)
+ ->setIcon('preview'));
+ }
return $view;
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Aug 1, 2:57 PM (6 d, 59 m ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
8755847
Default Alt Text
D7557.id.diff (1 KB)
Attached To
Mode
D7557: Fix 404 clicking Find Owners in diffusion, if Owners application is disabled.
Attached
Detach File
Event Timeline
Log In to Comment