From: Seamus Lee Date: Wed, 24 Aug 2016 21:12:01 +0000 (+1000) Subject: Move varible setting for allowRemoteSubmit outsite immediate if X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=fc5f21f49b7f4c70d20e2899cb3b590ca55aa374;p=civicrm-core.git Move varible setting for allowRemoteSubmit outsite immediate if --- diff --git a/CRM/Profile/Page/Router.php b/CRM/Profile/Page/Router.php index 6aead0e2fc..18198983d0 100644 --- a/CRM/Profile/Page/Router.php +++ b/CRM/Profile/Page/Router.php @@ -97,8 +97,8 @@ class CRM_Profile_Page_Router extends CRM_Core_Page { } if ($secondArg == 'edit' || $secondArg == 'create') { + $allowRemoteSubmit = Civi::settings()->get('remote_profile_submissions'); if ($secondArg == 'edit') { - $allowRemoteSubmit = Civi::settings()->get('remote_profile_submissions'); $controller = new CRM_Core_Controller_Simple('CRM_Profile_Form_Edit', ts('Create Profile'), CRM_Core_Action::UPDATE,