@@ -1,3 +1,3 @@  | 
                                                    ||
| 1 | 1 | <?php  | 
                                                        
| 2 | - # appel SPIP  | 
                                                        |
| 3 | -	include('spip.php'); | 
                                                        |
| 2 | + # appel SPIP  | 
                                                        |
| 3 | +    include('spip.php'); | 
                                                        |
@@ -11,7 +11,7 @@  | 
                                                    ||
| 11 | 11 | \***************************************************************************/  | 
                                                        
| 12 | 12 | |
| 13 | 13 |  if (!defined('_ECRIRE_INC_VERSION')) { | 
                                                        
| 14 | - return;  | 
                                                        |
| 14 | + return;  | 
                                                        |
| 15 | 15 | }  | 
                                                        
| 16 | 16 | |
| 17 | 17 |  include_spip('prive/objets/liste/auteurs_fonctions'); | 
                                                        
@@ -11,7 +11,7 @@  | 
                                                    ||
| 11 | 11 | \***************************************************************************/  | 
                                                        
| 12 | 12 | |
| 13 | 13 |  if (!defined('_ECRIRE_INC_VERSION')) { | 
                                                        
| 14 | - return;  | 
                                                        |
| 14 | + return;  | 
                                                        |
| 15 | 15 | }  | 
                                                        
| 16 | 16 | |
| 17 | 17 |  include_spip('inc/drapeau_edition'); | 
                                                        
@@ -4,7 +4,7 @@  | 
                                                    ||
| 4 | 4 | */  | 
                                                        
| 5 | 5 | |
| 6 | 6 |  if (!defined('_ECRIRE_INC_VERSION')) { | 
                                                        
| 7 | - return;  | 
                                                        |
| 7 | + return;  | 
                                                        |
| 8 | 8 | }  | 
                                                        
| 9 | 9 | |
| 10 | 10 |  include_spip('inc/filtres_selecteur_generique'); | 
                                                        
@@ -51,7 +51,7 @@  | 
                                                    ||
| 51 | 51 | $checked = ($l == $selected) ? ' checked=\'checked\'' : '';  | 
                                                        
| 52 | 52 | $ret .= "<div class='choix'>"  | 
                                                        
| 53 | 53 |  			. "<input type='radio' name='$name' id='{$id}_$l' value='$l'$checked />" | 
                                                        
| 54 | -			. "<label for='{$id}_$l'>" . traduire_nom_langue($l) . '</label>' | 
                                                        |
| 54 | +			. "<label for='{$id}_$l'>".traduire_nom_langue($l).'</label>' | 
                                                        |
| 55 | 55 | . '</div>';  | 
                                                        
| 56 | 56 | }  | 
                                                        
| 57 | 57 | |
@@ -10,46 +10,46 @@  | 
                                                    ||
| 10 | 10 | \***************************************************************************/  | 
                                                        
| 11 | 11 | |
| 12 | 12 |  if (!defined('_ECRIRE_INC_VERSION')) { | 
                                                        
| 13 | - return;  | 
                                                        |
| 13 | + return;  | 
                                                        |
| 14 | 14 | }  | 
                                                        
| 15 | 15 | |
| 16 | 16 |  function formulaires_configurer_langage_charger_dist() { | 
                                                        
| 17 | 17 | |
| 18 | -	include_spip('inc/lang'); | 
                                                        |
| 19 | - $GLOBALS['meta']['langues_proposees'] = '';  | 
                                                        |
| 20 | - init_langues();  | 
                                                        |
| 21 | -	$langues = explode(',', $GLOBALS['meta']['langues_proposees']); | 
                                                        |
| 18 | +    include_spip('inc/lang'); | 
                                                        |
| 19 | + $GLOBALS['meta']['langues_proposees'] = '';  | 
                                                        |
| 20 | + init_langues();  | 
                                                        |
| 21 | +    $langues = explode(',', $GLOBALS['meta']['langues_proposees']); | 
                                                        |
| 22 | 22 | |
| 23 | - return [  | 
                                                        |
| 24 | - 'var_lang_ecrire' => $GLOBALS['spip_lang'],  | 
                                                        |
| 25 | - '_langues' => $langues  | 
                                                        |
| 26 | - ];  | 
                                                        |
| 23 | + return [  | 
                                                        |
| 24 | + 'var_lang_ecrire' => $GLOBALS['spip_lang'],  | 
                                                        |
| 25 | + '_langues' => $langues  | 
                                                        |
| 26 | + ];  | 
                                                        |
| 27 | 27 | }  | 
                                                        
| 28 | 28 | |
| 29 | 29 | |
| 30 | 30 |  function formulaires_configurer_langage_traiter_dist() { | 
                                                        
| 31 | -	include_spip('action/converser'); | 
                                                        |
| 32 | - action_converser_changer_langue(true);  | 
                                                        |
| 31 | +    include_spip('action/converser'); | 
                                                        |
| 32 | + action_converser_changer_langue(true);  | 
                                                        |
| 33 | 33 | |
| 34 | - refuser_traiter_formulaire_ajax();  | 
                                                        |
| 34 | + refuser_traiter_formulaire_ajax();  | 
                                                        |
| 35 | 35 | |
| 36 | - // on ne peut pas changer la langue pour tout le hit ici,  | 
                                                        |
| 37 | - // car CVT repasse derriere et retablit la langue avant l'appel a traiter()  | 
                                                        |
| 38 | - // il faut rediriger !  | 
                                                        |
| 39 | -	return ['message_ok' => _T('config_info_enregistree'), 'editable' => true, 'redirect' => self()]; | 
                                                        |
| 36 | + // on ne peut pas changer la langue pour tout le hit ici,  | 
                                                        |
| 37 | + // car CVT repasse derriere et retablit la langue avant l'appel a traiter()  | 
                                                        |
| 38 | + // il faut rediriger !  | 
                                                        |
| 39 | +    return ['message_ok' => _T('config_info_enregistree'), 'editable' => true, 'redirect' => self()]; | 
                                                        |
| 40 | 40 | }  | 
                                                        
| 41 | 41 | |
| 42 | 42 |  function afficher_langues_choix($langues, $name, $id, $selected) { | 
                                                        
| 43 | -	include_spip('inc/lang'); | 
                                                        |
| 44 | - $ret = '';  | 
                                                        |
| 45 | - sort($langues);  | 
                                                        |
| 46 | -	foreach ($langues as $l) { | 
                                                        |
| 47 | - $checked = ($l == $selected) ? ' checked=\'checked\'' : '';  | 
                                                        |
| 48 | - $ret .= "<div class='choix'>"  | 
                                                        |
| 49 | -			. "<input type='radio' name='$name' id='{$id}_$l' value='$l'$checked />" | 
                                                        |
| 50 | -			. "<label for='{$id}_$l'>" . traduire_nom_langue($l) . '</label>' | 
                                                        |
| 51 | - . '</div>';  | 
                                                        |
| 52 | - }  | 
                                                        |
| 53 | -  | 
                                                        |
| 54 | - return $ret;  | 
                                                        |
| 43 | +    include_spip('inc/lang'); | 
                                                        |
| 44 | + $ret = '';  | 
                                                        |
| 45 | + sort($langues);  | 
                                                        |
| 46 | +    foreach ($langues as $l) { | 
                                                        |
| 47 | + $checked = ($l == $selected) ? ' checked=\'checked\'' : '';  | 
                                                        |
| 48 | + $ret .= "<div class='choix'>"  | 
                                                        |
| 49 | +            . "<input type='radio' name='$name' id='{$id}_$l' value='$l'$checked />" | 
                                                        |
| 50 | +            . "<label for='{$id}_$l'>" . traduire_nom_langue($l) . '</label>' | 
                                                        |
| 51 | + . '</div>';  | 
                                                        |
| 52 | + }  | 
                                                        |
| 53 | +  | 
                                                        |
| 54 | + return $ret;  | 
                                                        |
| 55 | 55 | }  | 
                                                        
@@ -1,21 +1,21 @@  | 
                                                    ||
| 1 | 1 | <?php  | 
                                                        
| 2 | 2 | |
| 3 | 3 |  if (!defined('_ECRIRE_INC_VERSION')) { | 
                                                        
| 4 | - return;  | 
                                                        |
| 4 | + return;  | 
                                                        |
| 5 | 5 | }  | 
                                                        
| 6 | 6 | |
| 7 | 7 |  include_spip('inc/rechercher'); | 
                                                        
| 8 | 8 |  include_spip('base/abstract_sql'); | 
                                                        
| 9 | 9 | |
| 10 | 10 |  function inclure_liste_recherche_par_id($table, $id, $statut, $env) { | 
                                                        
| 11 | -	if (is_string($env)) { | 
                                                        |
| 12 | - $env = unserialize($env);  | 
                                                        |
| 13 | - }  | 
                                                        |
| 14 | - $env[id_table_objet($table)] = $id;  | 
                                                        |
| 15 | -	if ($statut) { | 
                                                        |
| 16 | - $env['statut'] = $statut;  | 
                                                        |
| 17 | - }  | 
                                                        |
| 18 | - unset($env['recherche']);  | 
                                                        |
| 11 | +    if (is_string($env)) { | 
                                                        |
| 12 | + $env = unserialize($env);  | 
                                                        |
| 13 | + }  | 
                                                        |
| 14 | + $env[id_table_objet($table)] = $id;  | 
                                                        |
| 15 | +    if ($statut) { | 
                                                        |
| 16 | + $env['statut'] = $statut;  | 
                                                        |
| 17 | + }  | 
                                                        |
| 18 | + unset($env['recherche']);  | 
                                                        |
| 19 | 19 | |
| 20 | -	return recuperer_fond("prive/objets/liste/$table", $env); | 
                                                        |
| 20 | +    return recuperer_fond("prive/objets/liste/$table", $env); | 
                                                        |
| 21 | 21 | }  | 
                                                        
@@ -1,7 +1,7 @@  | 
                                                    ||
| 1 | 1 | <?php  | 
                                                        
| 2 | 2 | |
| 3 | 3 |  if (!defined('_ECRIRE_INC_VERSION')) { | 
                                                        
| 4 | - return;  | 
                                                        |
| 4 | + return;  | 
                                                        |
| 5 | 5 | }  | 
                                                        
| 6 | 6 | |
| 7 | 7 |  include_spip('inc/bandeau'); | 
                                                        
@@ -1,7 +1,7 @@  | 
                                                    ||
| 1 | 1 | <?php  | 
                                                        
| 2 | 2 | |
| 3 | 3 |  if (!defined('_ECRIRE_INC_VERSION')) { | 
                                                        
| 4 | - return;  | 
                                                        |
| 4 | + return;  | 
                                                        |
| 5 | 5 | }  | 
                                                        
| 6 | 6 | |
| 7 | 7 |  include_spip('inc/presentation_mini'); | 
                                                        
@@ -1,7 +1,7 @@  | 
                                                    ||
| 1 | 1 | <?php  | 
                                                        
| 2 | 2 | |
| 3 | 3 |  if (!defined('_ECRIRE_INC_VERSION')) { | 
                                                        
| 4 | - return;  | 
                                                        |
| 4 | + return;  | 
                                                        |
| 5 | 5 | }  | 
                                                        
| 6 | 6 | |
| 7 | 7 |  include_spip('inc/pipelines_ecrire'); |