diff --git a/ecrire/admin_tech.php3 b/ecrire/admin_tech.php3 index 9d5e86deed61bc10bc1ea6c3d641c08718cc2914..97cf8bb9604eb575bf21465ee7484dec851de72b 100644 --- a/ecrire/admin_tech.php3 +++ b/ecrire/admin_tech.php3 @@ -29,6 +29,8 @@ if ($purger_index == "oui") { mysql_query("DELETE FROM spip_index_breves"); mysql_query("DELETE FROM spip_index_mots"); mysql_query("DELETE FROM spip_index_rubriques"); + mysql_query("DELETE FROM spip_index_syndic"); + mysql_query("DELETE FROM spip_index_dico"); } } diff --git a/ecrire/inc_index.php3 b/ecrire/inc_index.php3 index 8f575bc35ea695d62025c1560459361c74aec2bc..3e886452ddf7d86d101e16eb1222e8975228efc3 100644 --- a/ecrire/inc_index.php3 +++ b/ecrire/inc_index.php3 @@ -61,6 +61,7 @@ function indexer_objet($type, $id_objet, $forcer_reset = true, $full = true) { $index = ''; $mots = "INSERT DELAYED IGNORE spip_index_dico (hash, dico) VALUES (0,'')"; + if ($type != 'syndic'){ $table_index = 'spip_index_'.$type.'s'; } else { @@ -68,6 +69,7 @@ function indexer_objet($type, $id_objet, $forcer_reset = true, $full = true) { } $col_id = 'id_'.$type; + switch($type) { case 'article': $query = "SELECT * FROM spip_articles WHERE id_article=$id_objet";