Commit 193f359c authored by Steven Wittens's avatar Steven Wittens
Browse files

#102644: Convert %vars to !vars for user mail text (forgot 2)

parent f6674f92
......@@ -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"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment