summaryrefslogtreecommitdiff
path: root/modules/locale
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2009-01-31 16:50:57 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2009-01-31 16:50:57 +0000
commit2c381622a5bd3ab5b22077348a088bb54ca202dc (patch)
treee11c0ecbdb81b067acbeb7b6fa16cd34e8147f1a /modules/locale
parent9544110e01816cd78e73a6756f856d2d8b07bbd1 (diff)
downloadbrdo-2c381622a5bd3ab5b22077348a088bb54ca202dc.tar.gz
brdo-2c381622a5bd3ab5b22077348a088bb54ca202dc.tar.bz2
#88264 by Rob Loach and kscheirer: Make variable_get()'s defaultparameter default to NULL so that NULLs do not need to be specified.
Diffstat (limited to 'modules/locale')
-rw-r--r--modules/locale/locale.install2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/locale/locale.install b/modules/locale/locale.install
index de8f6fe98..044ab62d3 100644
--- a/modules/locale/locale.install
+++ b/modules/locale/locale.install
@@ -172,7 +172,7 @@ function locale_update_6004() {
function locale_update_6005() {
foreach (node_get_types() as $type => $content_type) {
// Default to NULL, so we can skip dealing with non-existent settings.
- $setting = variable_get('language_' . $type, NULL);
+ $setting = variable_get('language_' . $type);
if ($type == 'default' && is_numeric($setting)) {
// language_default was overwritten with the content type setting,
// so reset the default language and save the content type setting.