Browse Source

Ticket spip/spip#5156 Ne pas envoyer tout spip_meta dans la config des formulaires

pull/4855/head
b_b 8 months ago committed by Gitea
parent
commit
278b099ccd
  1. 4
      formulaires/editer_site.html
  2. 5
      formulaires/editer_site.php

4
formulaires/editer_site.html

@ -18,7 +18,7 @@
<div class="editer-groupe">
[(#ENV{id_syndic}|intval|>{0}|sinon{#ENV{url_site}}|non)
[(#SESSION{statut}|=={0minirezo}|?{' ',#ENV{config}|table_valeur{proposer_sites}|>{0}|oui})
[(#SESSION{statut}|=={0minirezo}|?{' ',#CONFIG{proposer_sites}|>{0}|oui})
<div class="editer editer_referencement_automatise fieldset">
<fieldset>
<div class="editer-groupe">
@ -56,7 +56,7 @@
<span class='erreur_message'>(#ENV**{erreurs}|table_valeur{descriptif})</span>
]<textarea name='descriptif' id='descriptif' rows='4' cols='40'>[(#ENV**{descriptif})]</textarea>
</div>
[(#ENV**{config}|table_valeur{activer_syndic}|=={non}|?{'',' '})
[(#CONFIG{activer_syndic}|=={non}|?{'',' '})
<div class="editer editer_syndications fieldset">
<fieldset>
<h3 class="legend">[(#CHEMIN_IMAGE{rss-16.png}|balise_img{'',<:sites:info_syndication:>})]

5
formulaires/editer_site.php

@ -118,11 +118,10 @@ function formulaires_editer_site_identifier_dist(
* Configuration pour le formulaire
*/
function sites_edit_config($row) {
global $spip_lang;
$config = $GLOBALS['meta'];
$config = [];
$config['lignes'] = 8;
$config['langue'] = $spip_lang;
$config['langue'] = $GLOBALS['spip_lang'];
$config['restreint'] = false;

Loading…
Cancel
Save