Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15366863
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
Wed, Mar 12, 3:33 PM (11 h, 18 m ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7589014
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