From e36721a9cf06402573b3b8b40d5121ca0de8fe26 Mon Sep 17 00:00:00 2001 From: epriestley Date: Mon, 16 Sep 2013 08:01:14 -0700 Subject: [PATCH] Change "Pontificate" text in Serious Business mode Summary: Fixes T3833. Serious business was seriously disrupted. Test Plan: Looked at button in both seriousness modes. Reviewers: btrahan, chad Reviewed By: chad CC: aran Maniphest Tasks: T3833 Differential Revision: https://secure.phabricator.com/D7003 --- .../conpherence/controller/ConpherenceViewController.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/applications/conpherence/controller/ConpherenceViewController.php b/src/applications/conpherence/controller/ConpherenceViewController.php index d57f7de89c..4a047ce0e4 100644 --- a/src/applications/conpherence/controller/ConpherenceViewController.php +++ b/src/applications/conpherence/controller/ConpherenceViewController.php @@ -133,6 +133,7 @@ final class ConpherenceViewController extends $update_uri = $this->getApplicationURI('update/'.$conpherence->getID().'/'); Javelin::initBehavior('conpherence-pontificate'); + $is_serious = PhabricatorEnv::getEnvConfig('phabricator.serious-business'); $form = id(new AphrontFormView()) @@ -147,7 +148,10 @@ final class ConpherenceViewController extends ->setName('text')) ->appendChild( id(new AphrontFormSubmitControl()) - ->setValue(pht('Pontificate'))) + ->setValue( + $is_serious + ? pht('Send') + : pht('Pontificate'))) ->appendChild( javelin_tag( 'input',