Update of /home/spip-cvs/spip
In directory alan:/tmp/cvs-serv19446
Modified Files:
inc-calcul.php3
Log Message:
petits bugs multilinguisme :
* $forcer_lang et INCLURE()
* $forcer_lang et squelettes article=3.html (Michel Possoz)
Index: inc-calcul.php3
RCS file: /home/spip-cvs/spip/inc-calcul.php3,v
retrieving revision 1.70
retrieving revision 1.71
diff -u -d -r1.70 -r1.71
--- a/inc-calcul.php3 4 Jun 2004 23:49:19 -0000 1.70
+++ b/inc-calcul.php3 18 Jun 2004 22:07:18 -0000 1.71
@@ -425,6 +425,7 @@
$id_doublons['breves'] = '0';
$id_doublons['auteurs'] = '0';
$id_doublons['forums'] = '0';
+ $id_doublons['signatures'] = '0';
$id_doublons['mots'] = '0';
$id_doublons['groupes_mots'] = '0';
$id_doublons['syndication'] = '0';
@@ -477,9 +478,8 @@
$lang = $contexte['lang']; // l'URL peut fixer lang=xx, mais inc-urls peut aussi agir sur $contexte[lang]
}
- if ($GLOBALS['forcer_lang']) {
- // on ne touche plus
- } else if ($id_rubrique = $contexte['id_rubrique']) {
+ // chercher la langue de l'objet et sa rubrique (pour article=3.html)
+ if ($id_rubrique = $contexte['id_rubrique']) {
$id_rubrique_fond = $id_rubrique;
if ($row = spip_fetch_array(spip_query("SELECT lang FROM spip_rubriques WHERE id_rubrique='$id_rubrique'")))
if ($row['lang']) $lang = $row['lang'];
@@ -507,7 +507,9 @@
else {
$id_rubrique_fond = 0;
}
- lang_select($lang);
+
+ if (!$GLOBALS['forcer_lang'])
+ lang_select($lang);
$fond = chercher_squelette($fond, $id_rubrique_fond, $spip_lang);