Index: modules/locale/locale.install
===================================================================
RCS file: /cvs/drupal/drupal/modules/locale/locale.install,v
retrieving revision 1.70
diff -u -p -r1.70 locale.install
--- modules/locale/locale.install	5 Nov 2010 20:33:56 -0000	1.70
+++ modules/locale/locale.install	8 Nov 2010 03:33:27 -0000
@@ -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.
+  include_once DRUPAL_ROOT . '/includes/language.inc';
   $language_types_info = language_types_info();
   $info = $language_types_info[LANGUAGE_TYPE_URL];
   if (isset($info['fixed'])) {
