Issue #985360 by superspring, erikwebb: Fixed Inconsistent punctuation for user.module watchdog messages.
parent
7ae2e54748
commit
1a0ec7ed21
|
@ -257,7 +257,7 @@ class DBLogTest extends WebTestBase {
|
|||
// Add user.
|
||||
// Default display includes name and email address; if too long, the email
|
||||
// address is replaced by three periods.
|
||||
$this->assertLogMessage(t('New user: %name (%email).', array('%name' => $name, '%email' => $user->mail)), 'DBLog event was recorded: [add user]');
|
||||
$this->assertLogMessage(t('New user: %name %email.', array('%name' => $name, '%email' => '<' . $user->mail . '>')), 'DBLog event was recorded: [add user]');
|
||||
// Login user.
|
||||
$this->assertLogMessage(t('Session opened for %name.', array('%name' => $name)), 'DBLog event was recorded: [login user]');
|
||||
// Logout user.
|
||||
|
|
|
@ -110,7 +110,7 @@ class RegisterFormController extends AccountFormController {
|
|||
$form_state['user'] = $account;
|
||||
$form_state['values']['uid'] = $account->uid;
|
||||
|
||||
watchdog('user', 'New user: %name (%email).', array('%name' => $form_state['values']['name'], '%email' => $form_state['values']['mail']), WATCHDOG_NOTICE, l(t('edit'), 'user/' . $account->uid . '/edit'));
|
||||
watchdog('user', 'New user: %name %email.', array('%name' => $form_state['values']['name'], '%email' => '<' . $form_state['values']['mail'] . '>'), WATCHDOG_NOTICE, l(t('edit'), 'user/' . $account->uid . '/edit'));
|
||||
|
||||
// Add plain text password into user account to generate mail tokens.
|
||||
$account->password = $pass;
|
||||
|
|
Loading…
Reference in New Issue