Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

prend mes changes ! #1

Merged
12 commits merged into from
Jan 10, 2011
Prev Previous commit
Next Next commit
comments are formatted with basic linebreaks wihtin atom feed
  • Loading branch information
PowerKiKi committed Dec 25, 2010
commit b82f3c9e1f4ad709d8b0efa389ae4b926fc1ac4d
2 changes: 2 additions & 0 deletions include/controller/commentaire.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@

// supprime les \
stripslashes_deep($commentaire);
$commentaire['description'] = nl2br($commentaire['description']); // mise en forme basique des commentaire avec des retours chariots

// affichage de la ressource
$smarty->assign('commentaire',$commentaire);
Expand Down Expand Up @@ -152,6 +153,7 @@
$commentaires = array();
foreach ($tousCommentaires as $key => $aCommentaire) {
$commentaires[$key] = $aCommentaire;
$commentaires[$key]['description'] = nl2br($aCommentaire['description']); // mise en forme basique des commentaire avec des retours chariots
$commentaires[$key]['dateCreation'] = dateTime2Humain($aCommentaire['date_creation']);
$commentaires[$key]['auteur'] = $personneManager->getPseudo($aCommentaire['id_auteur']); // pseudo de l'auteur plutôt que id
$infoElementCommente = $commentaireManager->getElementCommentaire($aCommentaire['id_commentaire']);
Expand Down