summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorDavid Rothstein <drothstein@gmail.com>2013-08-05 21:52:02 -0400
committerDavid Rothstein <drothstein@gmail.com>2013-08-05 21:52:02 -0400
commit9cc5ed7b8c02feed5ecec2d1ec2213f63dc74a40 (patch)
treea60595133c5c4a837e182284fcd7e0154a251639 /modules
parent19dc0fc8cdb97729a14a61e6d83568f05c3802c6 (diff)
downloadbrdo-9cc5ed7b8c02feed5ecec2d1ec2213f63dc74a40.tar.gz
brdo-9cc5ed7b8c02feed5ecec2d1ec2213f63dc74a40.tar.bz2
Issue #1586166 by drumm, David_Rothstein: Fixed system_update_7013() and user_update_7002() should not call l().
Diffstat (limited to 'modules')
-rw-r--r--modules/system/system.install2
-rw-r--r--modules/user/user.install2
2 files changed, 2 insertions, 2 deletions
diff --git a/modules/system/system.install b/modules/system/system.install
index 1b037b82b..cf9a5d26c 100644
--- a/modules/system/system.install
+++ b/modules/system/system.install
@@ -1983,7 +1983,7 @@ function system_update_7013() {
$timezone = 'UTC';
}
variable_set('date_default_timezone', $timezone);
- drupal_set_message('The default time zone has been set to <em>' . check_plain($timezone) . '</em>. Check the ' . l('date and time configuration page', 'admin/config/regional/settings') . ' to configure it correctly.', 'warning');
+ drupal_set_message(format_string('The default time zone has been set to %timezone. Check the <a href="@config-url">date and time configuration page</a> to configure it correctly.', array('%timezone' => $timezone, '@config-url' => 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 cff873a45..4e1a3c22d 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(format_string('Some user time zones have been emptied and need to be set to the correct values. Use the new <a href="@config-url">time zone options</a> 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');
}