From 41c1f1ffaf20ddcbef4a834d41d97a4676345aeb Mon Sep 17 00:00:00 2001 From: Neil Drumm Date: Wed, 16 May 2012 15:44:39 -0700 Subject: [PATCH] [#1586166] system_update_7013() and user_update_7002() should not call l() --- modules/system/system.install | 2 +- modules/user/user.install | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/system/system.install b/modules/system/system.install index c030000..21ef064 100644 --- a/modules/system/system.install +++ b/modules/system/system.install @@ -1976,7 +1976,7 @@ function system_update_7013() { $timezone = 'UTC'; } variable_set('date_default_timezone', $timezone); - drupal_set_message('The default time zone has been set to ' . check_plain($timezone) . '. Check the ' . l('date and time configuration page', 'admin/config/regional/settings') . ' to configure it correctly.', 'warning'); + drupal_set_message(t('The default time zone has been set to %timezone. Check the date and time configuration page to configure it correctly.', array('%timezone' => $timezone, '@config-url' => 'admin/config/regional/settings')), 'warning'); // Remove temporary override. variable_del('date_temporary_timezone'); } diff --git a/modules/user/user.install b/modules/user/user.install index e46f29d..cc45d23 100644 --- a/modules/user/user.install +++ b/modules/user/user.install @@ -535,7 +535,7 @@ function user_update_7002(&$sandbox) { if ($sandbox['user_from'] == $sandbox['user_count']) { if ($sandbox['user_not_migrated'] > 0) { variable_set('empty_timezone_message', 1); - drupal_set_message('Some user time zones have been emptied and need to be set to the correct values. Use the new ' . l('time zone options', 'admin/config/regional/settings') . ' to choose whether to remind users at login to set the correct time zone.', 'warning'); + drupal_set_message(t('Some user time zones have been emptied and need to be set to the correct values. Use the new time zone options to choose whether to remind users at login to set the correct time zone.', array('@config-url' => url('admin/config/regional/settings'))), 'warning'); } return t('Migrated user time zones'); } -- 1.7.5.4