switch ($cms) {
case 'backdrop':
// FIXME!!!!
+ $candidates[] = "../backdrop/civicrm.config.php.backdrop";
+ $candidates[] = "../../backdrop/civicrm.config.php.backdrop";
$candidates[] = "../drupal/civicrm.config.php.backdrop";
$candidates[] = "../../drupal/civicrm.config.php.backdrop";
break;
// Handle relative urls that are within the CiviCRM module directory
elseif (strpos($url, $base) === 0) {
$internal = TRUE;
- $url = $this->appendCoreDirectoryToResourceBase(substr(drupal_get_path('module', 'civicrm'), 0, -6)) . trim(substr($url, strlen($base)), '/');
+ $url = $this->appendCoreDirectoryToResourceBase(dirname(drupal_get_path('module', 'civicrm')) . '/') . trim(substr($url, strlen($base)), '/');
}
// Strip query string
$q = strpos($url, '?');