CVS: spip/ecrire inc_lang.php3,1.103,1.104

Update of /home/spip-cvs/spip/ecrire
In directory alan:/tmp/cvs-serv13342/ecrire

Modified Files:
  inc_lang.php3
Log Message:
multilinguisme public
suite (et fin?)

Index: inc_lang.php3

RCS file: /home/spip-cvs/spip/ecrire/inc_lang.php3,v
retrieving revision 1.103
retrieving revision 1.104
diff -u -d -r1.103 -r1.104
--- a/inc_lang.php3 28 Apr 2004 23:49:13 -0000 1.103
+++ b/inc_lang.php3 29 Apr 2004 00:49:20 -0000 1.104
@@ -484,7 +484,10 @@
   if ($GLOBALS['auteur_session']['lang'])
     changer_langue($GLOBALS['auteur_session']['lang']);

- if ($cookie_lang = $HTTP_COOKIE_VARS['spip_lang'])
+ if (!$flag_ecrire AND ($cookie_lang = $HTTP_COOKIE_VARS['spip_lang']))
+ changer_langue($cookie_lang);
+
+ if ($flag_ecrire AND ($cookie_lang = $HTTP_COOKIE_VARS['spip_lang_ecrire']))
     changer_langue($cookie_lang);

}