Commit 1ba026e3 authored by hass's avatar hass
Browse files

D8 backport of string change

parent add48605
......@@ -62,7 +62,7 @@ function realname_settings_form($form, &$form_state) {
*/
function realname_settings_form_validate($form, &$form_state) {
if (strpos($form_state['values']['realname_pattern'], '[user:name]') !== FALSE) {
form_set_error('realname_pattern', t('The <em>[user:name]</em> token cannot be used as it will cause recursion.'));
form_set_error('realname_pattern', t('The %token token cannot be used as it will cause recursion.', array('%token' => '[user:name]')));
}
}
......
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