diff --git a/ecrire/exec/controle_forum.php b/ecrire/exec/controle_forum.php index b77dcdf0eab38286c97b0e16a7c1491a28772e59..6b541a268038cc0359729f74b1eb52c9c2428898 100644 --- a/ecrire/exec/controle_forum.php +++ b/ecrire/exec/controle_forum.php @@ -41,8 +41,9 @@ function forum_parent($id_forum) { 'valeur' => $id_article, 'titre' => $titre); } else { + $ancre = $forum_id_parent ? "forum$forum_id_parent" : ''; return array('pref' => _T('lien_reponse_article'), - 'url' => generer_url_article($id_article), + 'url' => generer_url_article($id_article,'',$ancre), 'type' => 'id_article', 'valeur' => $id_article, 'titre' => $titre, @@ -170,7 +171,8 @@ function controle_un_forum($row) { $controle .= boutons_controle_forum($id_forum, $forum_stat, $forum_id_auteur, "$type=$valeur", $forum_ip); $suite = "\n<br />$avant<b>$pref - <a href='$url'>$titre</a></b>" . "<div style='overflow:hidden'>".justifier(propre($forum_texte))."</div>"; + <a href='$url'>$titre</a></b>" + . "<div style='overflow:hidden'>".justifier(propre($forum_texte))."</div>"; if (strlen($forum_url_site) > 10 AND strlen($forum_nom_site) > 3) $suite .= "\n<div style='text-align: left' class='serif'><b><a href='$forum_url_site'>$forum_nom_site</a></b></div>"; diff --git a/ecrire/inc/presentation.php b/ecrire/inc/presentation.php index 6e37a46fdff31e090818119c3c5081bea0040211..81890904b4cee9d4b30e2fdd69ca81a9915d1f99 100644 --- a/ecrire/inc/presentation.php +++ b/ecrire/inc/presentation.php @@ -703,7 +703,7 @@ function afficher_forum_thread($row, $controle_id_article, $compteur_forum, $nb_ if (!$controle_id_article) { $tm = rawurlencode($titre); $res .= "\n<div style='text-align: right' class='verdana1'>" - . "<b><a href='" + . "<b><a title='" . _T('message') . " $id_forum' href='" . generer_url_ecrire("forum_envoi", "statut=$statut&id_parent=$id_forum&titre_message=$tm&script=" . urlencode("$retour?$arg")) . '#formulaire' . "'>" . _T('lien_repondre_message')