--- hierarchical_select.module.old 2009-10-31 02:33:22.000000000 +0100 +++ hierarchical_select.module 2010-04-02 11:42:13.640538400 +0200 @@ -1327,7 +1327,8 @@ function _hierarchical_select_setup_js(& $url .= variable_get('clean_url', 0) ? '' : 'index.php?q='; // Prefix URL with language path when i18n is enabled and when path-based // negotiation is being used. - if (module_exists('i18n') && ($language->prefix != '') && variable_get('language_negotiation', LANGUAGE_NEGOTIATION_NONE) != "3") { + $negociation = variable_get('language_negotiation', LANGUAGE_NEGOTIATION_NONE); + if (module_exists('i18n') && ($language->prefix != '') && ($negociation == LANGUAGE_NEGOTIATION_PATH_DEFAULT || $negotiation == LANGUAGE_NEGOTIATION_PATH)) { $url .= $language->prefix . '/'; }