summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rw-r--r--modules/locale/locale.install3
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/locale/locale.install b/modules/locale/locale.install
index cabdc0b34..0c95d001d 100644
--- a/modules/locale/locale.install
+++ b/modules/locale/locale.install
@@ -116,6 +116,9 @@ function locale_update_7001() {
* Updates URL language negotiation by adding the URL fallback detection method.
*/
function locale_update_7002() {
+ // language.inc may not have been included during bootstrap if there is not
+ // more than one language currently enabled.
+ require_once DRUPAL_ROOT . '/includes/language.inc';
$language_types_info = language_types_info();
$info = $language_types_info[LANGUAGE_TYPE_URL];
if (isset($info['fixed'])) {