From c10f9cafbefcb9e9d2b11690b50aa4eff7fad81d Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Mon, 13 Oct 2014 14:37:50 -0400 Subject: [PATCH] CRM-15450 - Fix D6 to render scripts in correct order --- CRM/Utils/System/Drupal6.php | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/CRM/Utils/System/Drupal6.php b/CRM/Utils/System/Drupal6.php index c18b5331f5..5c40eaa8c4 100644 --- a/CRM/Utils/System/Drupal6.php +++ b/CRM/Utils/System/Drupal6.php @@ -342,19 +342,7 @@ class CRM_Utils_System_Drupal6 extends CRM_Utils_System_DrupalBase { * @access public */ public function addScriptUrl($url, $region) { - switch ($region) { - case 'html-header': - case 'page-footer': - $scope = substr($region, 5); - break; - default: - return FALSE; - } - // If the path is within the drupal directory we can add in the normal way - if ($this->formatResourceUrl($url)) { - drupal_add_js($url, 'module', $scope); - return TRUE; - } + // CRM-15450 - D6 doesn't order internal/external links correctly so we can't use drupal_add_js return FALSE; } -- 2.25.1