Skip to content
Extraits de code Groupes Projets
Valider a6d33daa rédigé par ARNO*'s avatar ARNO*
Parcourir les fichiers

Pas de requete mySQL si pas de changement de langue

parent 60ea8a68
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -231,7 +231,7 @@ if ($titre && !$ajout_forum && $flag_editable) {
if ($langue_choisie_old != "oui") {
$row = spip_fetch_array(spip_query("SELECT lang FROM spip_rubriques WHERE id_rubrique=$id_rubrique"));
$langue_new = $row['lang'];
spip_query("UPDATE spip_articles SET lang = '$langue_new' WHERE id_article = $id_article");
if ($langue_new != $langue_old) spip_query("UPDATE spip_articles SET lang = '$langue_new' WHERE id_article = $id_article");
}
}
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter