From 2fed62d1e6a2d0c8e4b1d91f335984d14e920576 Mon Sep 17 00:00:00 2001
From: Cerdic <cedric@yterium.com>
Date: Tue, 6 Sep 2022 14:27:00 +0200
Subject: [PATCH] =?UTF-8?q?fix:=20utiliser=20une=20d=C3=A9claration=20moin?=
 =?UTF-8?q?s=20prioritaire=20pour=20ajouter=20le=20traitement=20typo=20sur?=
 =?UTF-8?q?=20le=20champ=20`#CREDITS`?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Refs: https://git.spip.net/spip/medias/issues/4905
---
 CHANGELOG.md    | 1 +
 base/medias.php | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/CHANGELOG.md b/CHANGELOG.md
index 416a6907..ff3d1789 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -20,6 +20,7 @@
 
 ### Fixed
 
+- #4905 Utiliser une déclaration moins prioritaire pour ajouter le traitement typo sur le champ `#CREDITS`
 - spip/spip#5274 Homogénéiser les labels des listes
 - #4902 Suppression des boutons excédentaires de sens de tri sur certaines listes de documents
 - #4893 Il ne faut pas contraindre la taille des SVG
diff --git a/base/medias.php b/base/medias.php
index d94bff07..121ea6fb 100644
--- a/base/medias.php
+++ b/base/medias.php
@@ -40,7 +40,7 @@ function medias_declarer_tables_interfaces($interfaces) {
 	$interfaces['table_date']['types_documents'] = 'date';
 
 	$interfaces['table_des_traitements']['FICHIER'][] = 'get_spip_doc(%s)';
-	$interfaces['table_des_traitements']['CREDITS']['spip_documents'] = _TRAITEMENT_TYPO;
+	$interfaces['table_des_traitements']['CREDITS']['documents'] = _TRAITEMENT_TYPO;
 	return $interfaces;
 }
 
-- 
GitLab