Notices avec `#EDIT{intro}` sur une boucle Rubrique
Par exemple dans une boucle Rubriques : https://git.spip.net/spip-contrib-extensions/z-core/src/branch/master/inclure/resume/rubrique.html#L12 On trouve `[<div class="#EDIT{intro} introduction entry-content">(#INTRODUCTION{#ENV{coupe,300}})</div>]` Cela génère une erreur pour produire le JSON en crayonnant : ---- <b>Warning</b>: Undefined array key "intro" in <b>~/action/crayons_html.php</b> on line <b>141</b><br /> <b>Deprecated</b>: preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated in <b>~/action/crayons_html.php</b> on line <b>141</b><br /> <b>Warning</b>: Trying to access array offset on false in <b>~/action/crayons_html.php</b> on line <b>155</b><br /> ---- Dans Crayons on voit un `controlleur/article-intro.html` mais pas de `rubrique-intro.html` par exemple, qui fait que ça tente de trouver le champ 'intro' dans la table de bdd. Je suppose que z-core a employé un peu abusivement ce `#EDIT{intro}` dans les résumés, alors qu’il ne s’applique QUE sur la table articles.
issue

Forge communautaire SPIP | Charte d'utilisation | Signaler un problème sur ce site