summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2010-02-09 18:21:49 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2010-02-09 18:21:49 +0000
commitf17bed7d554dc545f4e7d44f469f0519858a4eb1 (patch)
tree17668bb9db8e07cb7d10c5f0b6a79d88ee3c5695 /includes
parenta2ec3c3852d825c407e10a0ca76470f8026a33d7 (diff)
downloadbrdo-f17bed7d554dc545f4e7d44f469f0519858a4eb1.tar.gz
brdo-f17bed7d554dc545f4e7d44f469f0519858a4eb1.tar.bz2
#709142 by Damien Tournoud: Fixed Locale uninstall tests.
Diffstat (limited to 'includes')
-rw-r--r--includes/locale.inc3
1 files changed, 3 insertions, 0 deletions
diff --git a/includes/locale.inc b/includes/locale.inc
index 48b5dbc5e..a5e651aa7 100644
--- a/includes/locale.inc
+++ b/includes/locale.inc
@@ -379,6 +379,9 @@ function locale_add_language($langcode, $name = NULL, $native = NULL, $direction
variable_set('language_count', variable_get('language_count', 1) + 1);
}
+ // Kill the static cache in language_list().
+ drupal_static_reset('language_list');
+
// Force JavaScript translation file creation for the newly added language.
_locale_invalidate_js($langcode);