X-Git-Url: http://git.cyclocoop.org/?p=velocampus%2Fweb%2Fwww.git;a=blobdiff_plain;f=www%2Fecrire%2Finc%2Flang.php;fp=www%2Fecrire%2Finc%2Flang.php;h=5f0efa78faf39bb81333023213acb746e4c5216f;hp=736b9d13b1c05c9406138365bb076b36935b7529;hb=e99f0878011913365e49b30d90e496c24c301393;hpb=80b4d3e85f78d402ed2e73f8f5d1bf4c19962eed diff --git a/www/ecrire/inc/lang.php b/www/ecrire/inc/lang.php index 736b9d1..5f0efa7 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-2011 * + * Copyright (c) 2001-2014 * * Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James * * * * Ce programme est un logiciel libre distribue sous licence GNU/GPL. * @@ -346,13 +346,16 @@ function init_langues() { } // http://doc.spip.org/@html_lang_attributes -function html_lang_attributes() +function html_lang_attributes($dir=true) { + if ($dir) + $dir = " dir='" . ($GLOBALS['spip_lang_rtl'] ? 'rtl' : 'ltr') . "'"; + return "\n" ; + . "'" + . $dir + . ">\n" ; } init_langues(); utiliser_langue_site();