Skip to content

Commit

Permalink
Issue #2630378: Token "cannot contain fewer than one token" error mis…
Browse files Browse the repository at this point in the history
  • Loading branch information
klonos committed Aug 4, 2023
1 parent f32837d commit 2cc60a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/includes/token.inc
Original file line number Diff line number Diff line change
Expand Up @@ -688,7 +688,7 @@ function token_element_validate(&$element, &$form_state) {

// Validate if an element must have a minimum number of tokens.
if (isset($element['#min_tokens']) && count($tokens) < $element['#min_tokens']) {
$error = format_plural($element['#min_tokens'], 'The !element-title cannot contain fewer than one token.', 'The !element-title must contain at least @count tokens.', array('!element-title' => $title));
$error = format_plural($element['#min_tokens'], 'The %element-title must contain at least one token.', 'The %element-title must contain at least @count tokens.', array('%element-title' => $title));
form_error($element, $error);
}

Expand Down

0 comments on commit 2cc60a6

Please sign in to comment.