Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15532344
D10868.id26102.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
982 B
Referenced Files
None
Subscribers
None
D10868.id26102.diff
View Options
diff --git a/src/applications/project/controller/PhabricatorProjectProfileController.php b/src/applications/project/controller/PhabricatorProjectProfileController.php
--- a/src/applications/project/controller/PhabricatorProjectProfileController.php
+++ b/src/applications/project/controller/PhabricatorProjectProfileController.php
@@ -261,12 +261,17 @@
}
}
- $view->addAction(
- id(new PhabricatorActionView())
- ->setIcon('fa-book grey')
- ->setName(pht('View Wiki'))
- ->setWorkflow(true)
- ->setHref('/project/wiki/'));
+ $have_phriction = PhabricatorApplication::isClassInstalledForViewer(
+ 'PhabricatorPhrictionApplication',
+ $viewer);
+ if ($have_phriction) {
+ $view->addAction(
+ id(new PhabricatorActionView())
+ ->setIcon('fa-book grey')
+ ->setName(pht('View Wiki'))
+ ->setWorkflow(true)
+ ->setHref('/project/wiki/'));
+ }
return $view;
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Apr 24, 3:36 PM (10 h, 11 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7492704
Default Alt Text
D10868.id26102.diff (982 B)
Attached To
Mode
D10868: Don't show "View Wiki" reminder link if viewer has no access to Phriction
Attached
Detach File
Event Timeline
Log In to Comment