diff options
Diffstat (limited to 'modules/locale/locale.install')
-rw-r--r-- | modules/locale/locale.install | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/modules/locale/locale.install b/modules/locale/locale.install index c51033ea7..cabdc0b34 100644 --- a/modules/locale/locale.install +++ b/modules/locale/locale.install @@ -113,6 +113,17 @@ function locale_update_7001() { } /** + * Updates URL language negotiation by adding the URL fallback detection method. + */ +function locale_update_7002() { + $language_types_info = language_types_info(); + $info = $language_types_info[LANGUAGE_TYPE_URL]; + if (isset($info['fixed'])) { + language_negotiation_set(LANGUAGE_TYPE_URL, array_flip($info['fixed'])); + } +} + +/** * @} End of "defgroup updates-6.x-to-7.x" */ |