system_update_1021
modules/system/system.install, строка 3493
- Версии
- 5
system_update_1021()
Update two more variables that were missing from system_update_1019.
Связанные темы
Код
<?php
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();
}
?>
Войдите или зарегистрируйтесь, чтобы получить возможность отправлять комментарии