diff --git a/formulaires/administrer_mot.php b/formulaires/administrer_mot.php index 63ef6fc..6e64ed4 100644 --- a/formulaires/administrer_mot.php +++ b/formulaires/administrer_mot.php @@ -232,7 +232,7 @@ function formulaires_administrer_mot_traiter_dist($id_mot) { sql_insertq('spip_mots_liens', $a); } sql_delete('spip_mots_liens', 'id_mot=' . $id_mot); - $link = "" . objet_info('mot', 'texte_objet') . " #$id"; + $link = "" . objet_info('mot', 'texte_objet') . " #$id"; $res['message_ok'] = _T('adminmots:result_fusionner_ok', ['mot' => $link]); } diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon index 4c1d929..ad0cd62 100644 --- a/phpstan-baseline.neon +++ b/phpstan-baseline.neon @@ -191,7 +191,7 @@ parameters: path: formulaires/administrer_mot.php - - message: "#^Function generer_url_entite not found\\.$#" + message: "#^Function generer_objet_url not found\\.$#" count: 1 path: formulaires/administrer_mot.php diff --git a/prive/objets/infos/mot.html b/prive/objets/infos/mot.html index de6dad9..8f13225 100644 --- a/prive/objets/infos/mot.html +++ b/prive/objets/infos/mot.html @@ -15,7 +15,7 @@ #BOITE_OUVRIR{'','notice'} #SET{type,#TYPE|supprimer_numero}

<:mots:info_delet_mots_cles{titre_mot=#TITRE,type_mot=#GET{type},texte_lie=#GET{utilise}}:>

- [(#BOUTON_ACTION{<:mots:info_oui_suppression_mot_cle:>,#URL_ACTION_AUTEUR{supprimer_mot,#ID_MOT,#ID_GROUPE|generer_url_entite{groupe_mots}}})] + [(#BOUTON_ACTION{<:mots:info_oui_suppression_mot_cle:>,#URL_ACTION_AUTEUR{supprimer_mot,#ID_MOT,#ID_GROUPE|generer_objet_url{groupe_mots}}})] #BOITE_FERMER ] diff --git a/prive/objets/liste/groupes_mots.html b/prive/objets/liste/groupes_mots.html index fcfaf84..56d0fc5 100644 --- a/prive/objets/liste/groupes_mots.html +++ b/prive/objets/liste/groupes_mots.html @@ -23,7 +23,7 @@ Ce squelette n'est utile que pour l'affichage éventuel de résultats du moteur [(#VAL|puce_statut{groupe_mots,#ID_GROUPE,#ID_GROUPE})] - [(#RANG). ]#TITRE + [(#RANG). ]#TITRE [(#LOGO_GROUPE_MOT|image_reduire{40,40})] [(#AUTORISER{modifier,groupemots,#ID_GROUPE}|?{ #ID_GROUPE, diff --git a/prive/objets/liste/mots-admin.html b/prive/objets/liste/mots-admin.html index 65cb274..c46dd6c 100644 --- a/prive/objets/liste/mots-admin.html +++ b/prive/objets/liste/mots-admin.html @@ -19,7 +19,7 @@ - #SET{url_voir,#AUTORISER{voir,mot,#ID_MOT}|?{#ID_MOT|generer_url_entite{mot}|parametre_url{redirect,#ENV{retour}},''}} + #SET{url_voir,#AUTORISER{voir,mot,#ID_MOT}|?{#ID_MOT|generer_objet_url{mot}|parametre_url{redirect,#ENV{retour}},''}} #SET{url_edit,#AUTORISER{modifier,mot,#ID_MOT}|?{#URL_ECRIRE{mot_edit,id_mot=#ID_MOT}|parametre_url{redirect,#ENV{retour}},''}} [(#VAL|puce_statut{mot,#ID_MOT,#ID_GROUPE})] diff --git a/prive/objets/liste/mots.html b/prive/objets/liste/mots.html index 746bab7..245fda6 100644 --- a/prive/objets/liste/mots.html +++ b/prive/objets/liste/mots.html @@ -21,7 +21,7 @@ [(#VAL|puce_statut{mot,#ID_MOT,#ID_GROUPE})] - [(#RANG). ]#TITRE + [(#RANG). ]#TITRE [(#LOGO_MOT|image_reduire{40,40})] #TYPE [(#AUTORISER{modifier,mot,#ID_MOT}|?{ diff --git a/prive/objets/liste/mots_associer-recherche.html b/prive/objets/liste/mots_associer-recherche.html index 7b9d2d3..4eeebc3 100644 --- a/prive/objets/liste/mots_associer-recherche.html +++ b/prive/objets/liste/mots_associer-recherche.html @@ -35,7 +35,7 @@ points,-1 [(#VAL|puce_statut{mot,#ID_MOT,#ID_GROUPE})] - [(#LOGO_MOT|image_reduire{20,20})][(#LOGO_MOT|image_reduire{20,20})][(#RANG). ]#TITRE diff --git a/prive/objets/liste/mots_lies.html b/prive/objets/liste/mots_lies.html index 1ad19f3..1ecfaf5 100644 --- a/prive/objets/liste/mots_lies.html +++ b/prive/objets/liste/mots_lies.html @@ -25,7 +25,7 @@ [(#VAL|puce_statut{mot,#ID_MOT,#ID_GROUPE})] - [(#RANG). ]#TITRE + [(#RANG). ]#TITRE [(#LOGO_MOT|image_reduire{40,40})] #TYPE diff --git a/prive/objets/liste/objets_lies_mot.html b/prive/objets/liste/objets_lies_mot.html index b6d1b13..f29eae5 100644 --- a/prive/objets/liste/objets_lies_mot.html +++ b/prive/objets/liste/objets_lies_mot.html @@ -16,7 +16,7 @@ #GET{picto} [(#INFO_TITRE{#OBJET,#ID_OBJET}|sinon{<:info_sans_titre:>})] [(#AUTORISER{modifier,#OBJET,#ID_OBJET}|?{ diff --git a/prive/squelettes/contenu/groupe_mots_edit.html b/prive/squelettes/contenu/groupe_mots_edit.html index 5bc3c22..295449b 100644 --- a/prive/squelettes/contenu/groupe_mots_edit.html +++ b/prive/squelettes/contenu/groupe_mots_edit.html @@ -10,7 +10,7 @@ [<:titre_groupe_mots:>

(#ENV{titre,#INFO_TITRE{groupe_mots,#ID_GROUPE}|sinon{<:mots:titre_nouveau_groupe:>}})

] -#SET{redirect,#ENV{redirect,#ID_GROUPE|generer_url_entite{groupe_mots}}} +#SET{redirect,#ENV{redirect,#ID_GROUPE|generer_objet_url{groupe_mots}}} [(#ENV{retourajax,''}|oui) #SET{redirect,'javascript:if (window.jQuery) jQuery(".entete-formulaire .retour a").followLink();'}
diff --git a/prive/squelettes/contenu/mot_edit.html b/prive/squelettes/contenu/mot_edit.html index 5b448a4..caa92ef 100644 --- a/prive/squelettes/contenu/mot_edit.html +++ b/prive/squelettes/contenu/mot_edit.html @@ -13,7 +13,7 @@

(#ENV{titre,#INFO_TITRE{mot,#ID_MOT}|sinon{<:mots:texte_nouveau_mot:>}})

]
-#SET{redirect,#ENV{redirect,#ID_MOT|generer_url_entite{mot}}} +#SET{redirect,#ENV{redirect,#ID_MOT|generer_objet_url{mot}}} [(#ENV{retourajax,''}|oui) #SET{redirect,'javascript:if (window.jQuery) jQuery(".entete-formulaire .retour a").followLink();'}