Re: SPIP 3.3 et Compositions

JLuc <[email protected]>
Newsgroups gmane.comp.web.spip.devel
Message-ID <[email protected]>
Le 17/09/2020 à 17:34, Bruno Bergot a écrit :
> Point de sorcellerie, juste de la magie :)
> https://git.spip.net/spip/spip/commit/b572418d55c7cad0d9e1542a9f7f18e8ff7db25e

Hihi non je ne crois pas que cette ligne spoile le "truc"
car elle teste si le fichier existe, auquel cas ça le renvoie,
et donc ok ça permet à #CHEMIN_IMAGE de renvoyer un SVG reçu en paramètre...
mais dans le code de composition corrigé, #CHEMIN_IMAGE reçoit un PNG en argument
<img width="16" height="16" src="#CHEMIN_IMAGE{cadenas-16.png}" alt="" />
et renvoie un SVG
c'est bien ça ?
Alors c'est autre chose. Ça pourrait être dans
https://git.spip.net/spip/spip/src/branch/master/ecrire/inc/icone_renommer.php
qui fait de la magie aussi, mais je vois pas où car nulle par ça ne favorise un svg
et le fichier n'a pas changé dans la branche "icones_svg"
...

JL
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.