Merge pull request #10674 from herbdool/crm20764
authorMathieu Lu <mathieu@bidon.ca>
Wed, 15 Nov 2017 21:27:59 +0000 (16:27 -0500)
committerGitHub <noreply@github.com>
Wed, 15 Nov 2017 21:27:59 +0000 (16:27 -0500)
CRM-20764 Allow clean URLs with CiviCRM on Backdrop

templates/CRM/common/civicrm.settings.php.template

index 507b96b13308d78e467662d8c781816ae5e035d1..e7b88fb624bcfb706ce01d7f92b8cbd890b0f972 100644 (file)
@@ -454,6 +454,9 @@ if (!defined('CIVICRM_CLEANURL')) {
   if ( function_exists('variable_get') && variable_get('clean_url', '0') != '0') {
     define('CIVICRM_CLEANURL', 1 );
   }
+  elseif ( function_exists('config_get') && config_get('system.core', 'clean_url') != 0) {
+    define('CIVICRM_CLEANURL', 1 );
+  }
   else {
     define('CIVICRM_CLEANURL', 0);
   }