Browse Source

Fix https://core.spip.net/issues/3947 : le chargement de porte plume ne se fait pas sur le public par defaut

master v1.19.2
cedric@yterium.com 4 years ago
parent
commit
5878ef19cd
  1. 4
      formulaires/configurer_porte_plume.html
  2. 2
      paquet.xml
  3. 2
      porte_plume_pipelines.php

4
formulaires/configurer_porte_plume.html

@ -15,11 +15,11 @@
<label><:barreoutils:info_barre_outils_public:></label>
[<span class='erreur_message'>(#ENV**{erreurs}|table_valeur{barre_outils_public})</span>]
<div class='choix'>
<input class='radio' type="radio" name="barre_outils_public" value='oui'[ (#ENV{barre_outils_public}|!={non}|oui)checked="checked"] id="barre_outils_public_oui"/>
<input class='radio' type="radio" name="barre_outils_public" value='oui'[ (#ENV{barre_outils_public}|=={oui}|oui)checked="checked"] id="barre_outils_public_oui"/>
<label for="barre_outils_public_oui"><:barreoutils:label_barre_outils_public_oui:></label>
</div>
<div class='choix'>
<input class='radio' type="radio" name="barre_outils_public" value='non'[ (#ENV{barre_outils_public}|=={non}|oui)checked="checked"] id="barre_outils_public_non"/>
<input class='radio' type="radio" name="barre_outils_public" value='non'[ (#ENV{barre_outils_public}|=={oui}|oui)checked="checked"] id="barre_outils_public_non"/>
<label for="barre_outils_public_non"><:barreoutils:label_barre_outils_public_non:></label>
</div>
</div>

2
paquet.xml

@ -1,7 +1,7 @@
<paquet
prefix="porte_plume"
categorie="edition"
version="1.19.1"
version="1.19.2"
etat="stable"
compatibilite="[3.3.0-dev;3.3.*]"
logo="images/porte-plume-32.png"

2
porte_plume_pipelines.php

@ -55,7 +55,7 @@ function autoriser_porteplume_afficher_public_dist($faire, $type, $id, $qui, $op
return PORTE_PLUME_PUBLIC;
}
return ($GLOBALS['meta']['barre_outils_public'] !== 'non');
return (isset($GLOBALS['meta']['barre_outils_public']) and $GLOBALS['meta']['barre_outils_public'] === 'oui');
// n'autoriser qu'aux identifies :
# return $qui['id_auteur'] ? PORTE_PLUME_PUBLIC : false;

Loading…
Cancel
Save