Commit e5d839b2 authored by hass's avatar hass
Browse files

D6 has drupal_to_js() only

parent e07fcb52
......@@ -218,7 +218,7 @@ function googleanalytics_footer($main = 0) {
// Per RFC 2109, cookie domains must contain at least one dot other than the
// first. For hosts such as 'localhost' or IP Addresses we don't set a cookie domain.
if ($domain_mode == 1 && count(explode('.', $cookie_domain)) > 2 && !is_numeric(str_replace('.', '', $cookie_domain))) {
$script .= '_gaq.push(["_setDomainName", ' . drupal_json_encode($cookie_domain) . ']);';
$script .= '_gaq.push(["_setDomainName", ' . drupal_to_js($cookie_domain) . ']);';
}
if (!empty($segmentation)) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment