Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F18854302
D10868.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.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
Nov 1 2025, 11:07 PM (9 w, 5 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
8663719
Default Alt Text
D10868.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