Mise à jour 1.0.4 vers 1.0.5Motif : Corrige le fait que le MOD ne fonctionnait pas lorsqu'il n'y avait qu'un seul message dans un sujet.
Ouvrir
- Code: Tout sélectionner
includes/functions_posting.php
Trouver
- Code: Tout sélectionner
if($post_mode == 'edit_last_post')
{
$sql_update_posts = 'UPDATE '.POSTS_TABLE.'
SET post_time = '.time().'
WHERE post_id = '.$data['post_id'].'
AND topic_id = '.$data['topic_id'];
$db->sql_query($sql_update_posts);
$sql_update_topics = 'UPDATE '.TOPICS_TABLE.'
SET topic_last_post_time = '.time().'
WHERE topic_id = '.$data['topic_id'];
$db->sql_query($sql_update_topics);
update_post_information('forum',$data['forum_id']);
markread('post', $data['forum_id'], $data['topic_id'], $data['post_time']);
}
Remplacer par :
- Code: Tout sélectionner
if($post_mode == 'edit_last_post' || $post_mode == 'edit_topic')
{
$sql_update_posts = 'UPDATE ' . POSTS_TABLE . '
SET post_time = ' . $current_time . '
WHERE post_id = ' . $data['post_id'] . '
AND topic_id = ' . $data['topic_id'];
$db->sql_query($sql_update_posts);
$sql_update_topics = 'UPDATE ' . TOPICS_TABLE . '
SET topic_last_post_time = ' . $current_time . '
WHERE topic_id = ' . $data['topic_id'];
$db->sql_query($sql_update_topics);
update_post_information('forum', $data['forum_id']);
markread('post', $data['forum_id'], $data['topic_id'], $data['post_time']);
}