- if (strlen($texte = _request('texte')) < 10 AND $GLOBALS['meta']['forums_texte'] == 'oui')
- $erreurs['texte'] = _T('forum:forum_attention_dix_caracteres');
+ $min_length = (defined('_FORUM_LONGUEUR_MINI') ? _FORUM_LONGUEUR_MINI : 10);
+ if (strlen($texte = _request('texte'))<$min_length
+ AND !$ajouter_mot AND $GLOBALS['meta']['forums_texte']=='oui'
+ ){
+ $erreurs['texte'] = _T($min_length==10 ? 'forum:forum_attention_dix_caracteres' : 'forum:forum_attention_nb_caracteres_mini', array('min' => $min_length));
+ }