Details
-
Type: Bug
-
Status: Done/Fixed
-
Priority: Trivial
-
Resolution: Fixed/Completed
-
Affects Version/s: 4.7.20
-
Fix Version/s: 4.7.30
-
Component/s: Backdrop Integration, Drupal Integration Modules
-
Labels:
-
Versioning Impact:Patch (backwards-compatible bug fixes)
-
Documentation Required?:None
-
Funding Source:Contributed Code
-
Verified?:No
Description
variable_get doesn't exist in Backdrop, so the check for clean urls needs to be updated.
For Backdrop the following change works:
if (!defined('CIVICRM_CLEANURL')) { if ( function_exists('variable_get') && variable_get('clean_url', '0') != '0') { define('CIVICRM_CLEANURL', 1 ); } else { define('CIVICRM_CLEANURL', 0); } }
to:
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); } }