diff --git a/ecrire/base/objets.php b/ecrire/base/objets.php index 0525104e26e3b4de3650cd8fa90aa89d7ebcbe8d..f6fdccf99fd55c0d003238358bee766deb768327 100644 --- a/ecrire/base/objets.php +++ b/ecrire/base/objets.php @@ -46,13 +46,13 @@ function array_set_merge(&$table, $index, $valeur) { * Elle est auto-declarée si inconnue jusqu'alors. * * @api - * @param string $table_sql + * @param string|null $table_sql * table_sql demandee explicitement * @param array $desc * description connue de la table sql demandee * @return array|bool */ -function lister_tables_objets_sql($table_sql = null, $desc = []) { +function lister_tables_objets_sql(?string $table_sql = null, $desc = []) { static $deja_la = false; static $infos_tables = null; static $md5 = null; diff --git a/prive/formulaires/configurer_multilinguisme.html b/prive/formulaires/configurer_multilinguisme.html index 9ba50b9fb0b688a02a643defa48a5d1de5a7d3b8..5fd59ee2374cfbcf4ac6aefe6cd82f431d0dbefe 100644 --- a/prive/formulaires/configurer_multilinguisme.html +++ b/prive/formulaires/configurer_multilinguisme.html @@ -50,7 +50,7 @@ </fieldset> </div> ] - <BOUCLE_objets(DATA){source table, #REM|lister_tables_objets_sql}{cle!=spip_rubriques}{cle!=spip_auteurs}{si #ENV{editable}}>[(#CLE|table_supporte_lang|et{#VALEUR{type}|objet_info{editable}}) + <BOUCLE_objets(DATA){source table, #NULL|lister_tables_objets_sql}{cle!=spip_rubriques}{cle!=spip_auteurs}{si #ENV{editable}}>[(#CLE|table_supporte_lang|et{#VALEUR{type}|objet_info{editable}}) #SET{val,#CLE} <div class="fieldset"> <fieldset> diff --git a/prive/formulaires/inc-choisir-objets.html b/prive/formulaires/inc-choisir-objets.html index 4fbe180a58bd18840f566b2d4d7af4def901dd21..8880a64dc7423a56ef908c8928148367ebe61c97 100644 --- a/prive/formulaires/inc-choisir-objets.html +++ b/prive/formulaires/inc-choisir-objets.html @@ -1,4 +1,4 @@ -#SET{traductions,#ARRAY}<BOUCLE_objets(DATA){source table, #REM|lister_tables_objets_sql}{cle !IN #ENV{exclus,''}}>[(#EDITABLE|oui) +#SET{traductions,#ARRAY}<BOUCLE_objets(DATA){source table, #NULL|lister_tables_objets_sql}{cle !IN #ENV{exclus,''}}>[(#EDITABLE|oui) [(#SET{traductions,#GET{traductions}|array_merge{#ARRAY{#CLE,#TEXTE_OBJETS|_T}}})] ]</BOUCLE_objets><BOUCLE_par_traduction(DATA){source table, #GET{traductions}}{par valeur}> #SET{id,#ENV{name}|replace{\W,'_'}|concat{'_',#CLE}} diff --git a/prive/rss/a_suivre.html b/prive/rss/a_suivre.html index f1db908edb12c14ab7dfcfe2b1f508233692ca90..79c9a6e53a544d2cb5a02977299a72987a340836 100644 --- a/prive/rss/a_suivre.html +++ b/prive/rss/a_suivre.html @@ -19,7 +19,7 @@ if ([(#ID_AUTEUR|securiser_acces{#ENV{cle},rss,#ENV{op}, #ENV{args}}|?{1,0})]) { <description>[(#INTRODUCTION|texte_backend)]</description> </item> </BOUCLE_A> -<BOUCLE_objets(DATA){source table, #REM|lister_tables_objets_sql}> +<BOUCLE_objets(DATA){source table, #NULL|lister_tables_objets_sql}> #SET{fond,#VAL{prive/rss/a_suivre-}|concat{#VALEUR{table_objet}}} [(#GET{fond}|trouver_fond|oui)#INCLURE*{fond=#GET{fond}}] </BOUCLE_objets> diff --git a/prive/themes/spip/lists.css.html b/prive/themes/spip/lists.css.html index a193351f6479849f5e0b4f00f3cecfd7ce756fd5..0e8d4bc5ba12aeac1631adb19f515cb72dc6a44a 100644 --- a/prive/themes/spip/lists.css.html +++ b/prive/themes/spip/lists.css.html @@ -191,7 +191,7 @@ .liste-objets table .caption { border-bottom: 1px solid var(--spip-box-sep-color); } -<BOUCLE_objets(DATA){source table, #REM|lister_tables_objets_sql}> +<BOUCLE_objets(DATA){source table, #NULL|lister_tables_objets_sql}> [.liste-objets.[(#VALEUR{table_objet})] .caption { background-image: url((#CHEMIN_IMAGE{#VALEUR{icone_objet}|concat{-24.png}})); padding-#LEFT: var(--spip-list-heading-iconpadding); @@ -890,7 +890,7 @@ background-position: center var(--spip-left); background-repeat: no-repeat; } -<BOUCLE_objets2(DATA){source table, #REM|lister_tables_objets_sql}{cle!=spip_rubriques}> +<BOUCLE_objets2(DATA){source table, #NULL|lister_tables_objets_sql}{cle!=spip_rubriques}> .plan .menu-items.[(#VALEUR{table_objet})] .item > a { padding-#LEFT: 20px; [background-image: url((#CHEMIN_IMAGE{#VALEUR{icone_objet}-16.png}));] diff --git a/prive/themes/spip/picker.css.html b/prive/themes/spip/picker.css.html index 2c4949c964cbc7daeb2174e8c22df3a29904943c..a1ac29670fb31f3f7aae08de5113a225c574e82c 100644 --- a/prive/themes/spip/picker.css.html +++ b/prive/themes/spip/picker.css.html @@ -206,7 +206,7 @@ a.rub-ouverte { /* ----- */ /* Les éléments propres à chaque objet */ -<BOUCLE_objets(DATA){source table, (#REM|lister_tables_objets_sql)}> +<BOUCLE_objets(DATA){source table, (#NULL|lister_tables_objets_sql)}> [(#SET{petite_icone, [(#CHEMIN_IMAGE{#VALEUR{icone_objet}-12.png}|sinon{[(#CHEMIN_IMAGE{#VALEUR{icone_objet}-16.png}|image_reduire{12}|extraire_attribut{src})]})]})] ul.item_picked li.#VALEUR{type} {padding-#GET{left}:24px;background-image:url(#GET{petite_icone});background-size:12px;} .item_picker .[(#VALEUR{table_objet})] .type_objet {padding-#GET{left}:24px; background:url(#GET{petite_icone}) no-repeat[ (#GET{left}) ]center; background-size:12px;}