summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2010-11-09 17:46:34 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2010-11-09 17:46:34 +0000
commit5d35cc16e0bb51e107f1b1b94abff20c87059777 (patch)
treebc1f4305d71e3e3b3ceede14c67fe1605ee82c15
parentf1515c957c16c06d7d7be53f36f273b643b4cd52 (diff)
downloadbrdo-5d35cc16e0bb51e107f1b1b94abff20c87059777.tar.gz
brdo-5d35cc16e0bb51e107f1b1b94abff20c87059777.tar.bz2
#965130 by dalin, plach: Fixed locale_update_7002() assumes that multiple languages are enabled.
-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'])) {