/***************************************************************************\
* 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. *
// 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']);
}
//