Page MenuHomePhabricator

D19627.id.diff
No OneTemporary

D19627.id.diff

diff --git a/src/applications/phriction/controller/PhrictionDocumentController.php b/src/applications/phriction/controller/PhrictionDocumentController.php
--- a/src/applications/phriction/controller/PhrictionDocumentController.php
+++ b/src/applications/phriction/controller/PhrictionDocumentController.php
@@ -432,13 +432,17 @@
$publish_uri = "/phriction/publish/{$id}/{$content_id}/";
- $curtain->addAction(
- id(new PhabricatorActionView())
- ->setName($publish_name)
- ->setIcon('fa-upload')
- ->setDisabled(!$can_publish)
- ->setWorkflow(true)
- ->setHref($publish_uri));
+ if (PhabricatorEnv::getEnvConfig('phabricator.show-prototypes')) {
+ $publish_name = pht('Publish (Prototype!)');
+
+ $curtain->addAction(
+ id(new PhabricatorActionView())
+ ->setName($publish_name)
+ ->setIcon('fa-upload')
+ ->setDisabled(!$can_publish)
+ ->setWorkflow(true)
+ ->setHref($publish_uri));
+ }
if ($document->getStatus() == PhrictionDocumentStatus::STATUS_EXISTS) {
$curtain->addAction(

File Metadata

Mime Type
text/plain
Expires
Sun, Mar 23, 1:21 AM (1 w, 3 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7700743
Default Alt Text
D19627.id.diff (1 KB)

Event Timeline