Skip to content

Commit

Permalink
fixed #189: plxAdmin:modCommentaire - mauvais message affiché après l…
Browse files Browse the repository at this point in the history
…a validation d'un commentaire
  • Loading branch information
Stephane committed Oct 24, 2016
1 parent d13f49b commit b0c6931
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/lib/class.plx.admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -1007,12 +1007,12 @@ public function modCommentaire(&$id, $mod) {
@rename($oldfilename,$newfilename);
# Contrôle
if(is_readable($newfilename)) {
if($type == 'online')
if($mod == 'online')
return plxMsg::Info(L_COMMENT_VALIDATE_SUCCESSFUL);
else
return plxMsg::Info(L_COMMENT_MODERATE_SUCCESSFUL);
} else {
if($type == 'online')
if($mod == 'online')
return plxMsg::Error(L_COMMENT_VALIDATE_ERR);
else
return plxMsg::Error(L_COMMENT_MODERATE_ERR);
Expand Down
1 change: 1 addition & 0 deletions readme/CHANGELOG
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ BUG #183: Fichier css custom non chargé sur la page auth.php
BUG #184: Pas d'affichage du flux RSS des commentaires quand il n'y a pas de commentaires enregistrés
BUG #185: Mauvaise cible de téléchargement
BUG #187: Mauvais numéro d'article dans l'ajout d'un nouveau commentaire (contribution mathieu269)
BUG #189: plxAdmin:modCommentaire - mauvais message affiché après la validation d'un commentaire
BUG #192: Rédaction d'un article: ajout rapide de tag avec une apostrophe impossible (erreur javascript)

## PLUXML 5.5 (sortie : 01/04/2016) ##
Expand Down

0 comments on commit b0c6931

Please sign in to comment.