X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;ds=sidebyside;f=www%2Fecrire%2Finc%2Flang.php;fp=www%2Fecrire%2Finc%2Flang.php;h=169692e1a205c2b4e0b931d0fdf26dad84cddf54;hb=122c920eb07e3f665789f8734965b576e6c25515;hp=abfee108bc7aa32cb4152a47f38f0da5b8c436f3;hpb=226942065cd4f604eb464addf45a065c9e5bc916;p=lhc%2Fweb%2Fwww.git diff --git a/www/ecrire/inc/lang.php b/www/ecrire/inc/lang.php index abfee108..169692e1 100644 --- a/www/ecrire/inc/lang.php +++ b/www/ecrire/inc/lang.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2012 * + * Copyright (c) 2001-2014 * * Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James * * * * Ce programme est un logiciel libre distribue sous licence GNU/GPL. * @@ -141,9 +141,10 @@ function lang_typo($lang='') { // avec les memes typo et direction dans l'espace prive que dans le public // http://doc.spip.org/@changer_typo function changer_typo($lang = '') { - global $lang_objet; - - return $lang_objet = $lang ? $lang : $GLOBALS['meta']['langue_site']; + if ($lang) + $GLOBALS['lang_objet'] = $lang; + else + unset($GLOBALS['lang_objet']); } //