diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2009-01-31 16:50:57 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2009-01-31 16:50:57 +0000 |
commit | 2c381622a5bd3ab5b22077348a088bb54ca202dc (patch) | |
tree | e11c0ecbdb81b067acbeb7b6fa16cd34e8147f1a /modules/system/system.install | |
parent | 9544110e01816cd78e73a6756f856d2d8b07bbd1 (diff) | |
download | brdo-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/system/system.install')
-rw-r--r-- | modules/system/system.install | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/modules/system/system.install b/modules/system/system.install index 1849f88ad..7b8f1e144 100644 --- a/modules/system/system.install +++ b/modules/system/system.install @@ -134,7 +134,7 @@ function system_requirements($phase) { $help = $t('For more information, see the online handbook entry for <a href="@cron-handbook">configuring cron jobs</a>.', array('@cron-handbook' => 'http://drupal.org/cron')); // Determine when cron last ran. - $cron_last = variable_get('cron_last', NULL); + $cron_last = variable_get('cron_last'); if (!is_numeric($cron_last)) { $cron_last = variable_get('install_time', 0); } @@ -2491,7 +2491,7 @@ function system_update_6041() { */ function system_update_6042() { foreach (list_themes() as $theme) { - $stylesheet = variable_get('color_' . $theme->name . '_stylesheet', NULL); + $stylesheet = variable_get('color_' . $theme->name . '_stylesheet'); if (!empty($stylesheet)) { variable_set('color_' . $theme->name . '_stylesheets', array($stylesheet)); variable_del('color_' . $theme->name . '_stylesheet'); @@ -2853,12 +2853,12 @@ function system_update_7004(&$sandbox) { } } // Rename forum module's block variables. - $forum_block_num_0 = variable_get('forum_block_num_0', NULL); + $forum_block_num_0 = variable_get('forum_block_num_0'); if (isset($forum_block_num_0)) { variable_set('forum_block_num_active', $forum_block_num_0); variable_del('forum_block_num_0'); } - $forum_block_num_1 = variable_get('forum_block_num_1', NULL); + $forum_block_num_1 = variable_get('forum_block_num_1'); if (isset($forum_block_num_1)) { variable_set('forum_block_num_new', $forum_block_num_1); variable_del('forum_block_num_1'); @@ -3090,7 +3090,7 @@ function system_update_7013() { $timezones = system_time_zones(); // If the contributed Date module set a default time zone name, use this // setting as the default time zone. - if (($timezone_name = variable_get('date_default_timezone_name', NULL)) && isset($timezones[$timezone_name])) { + if (($timezone_name = variable_get('date_default_timezone_name')) && isset($timezones[$timezone_name])) { $timezone = $timezone_name; } // If the contributed Event module has set a default site time zone, look up |