diff options
author | Steven Wittens <steven@10.no-reply.drupal.org> | 2007-01-10 23:22:34 +0000 |
---|---|---|
committer | Steven Wittens <steven@10.no-reply.drupal.org> | 2007-01-10 23:22:34 +0000 |
commit | 193f359cd44573ac3ae84d8bab9b93c826e73ea1 (patch) | |
tree | d8add283b3d353b41164833b0e75199b93d56056 | |
parent | f6674f92d58afe25c28ddb53435eee62bf0a227e (diff) | |
download | brdo-193f359cd44573ac3ae84d8bab9b93c826e73ea1.tar.gz brdo-193f359cd44573ac3ae84d8bab9b93c826e73ea1.tar.bz2 |
#102644: Convert %vars to !vars for user mail text (forgot 2)
-rw-r--r-- | modules/system/system.install | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/modules/system/system.install b/modules/system/system.install index 282457bf0..1dac3485e 100644 --- a/modules/system/system.install +++ b/modules/system/system.install @@ -3489,6 +3489,20 @@ function system_update_1020() { return $ret; } +/** + * Update two more variables that were missing from system_update_1019. + */ +function system_update_1021() { + $message_ids = array('admin_body', 'admin_subject'); + foreach ($message_ids as $id) { + // Replace all %vars with !vars + if ($message = variable_get('user_mail_'. $id, NULL)) { + $fixed = preg_replace('/%([A-Za-z_-]+)/', '!\1', $message); + variable_set('user_mail_'. $id, $fixed); + } + } + return array(); +} /** * @} End of "defgroup updates-4.7-to-5.0" |