From 98ccf65c8fbd01c1f3be3f70c770bfd0c0bdd1b9 Mon Sep 17 00:00:00 2001 From: cy_altern <cy.altern@gmail.com> Date: Tue, 12 Mar 2024 22:51:13 +0100 Subject: [PATCH] =?UTF-8?q?fix=20:=20lever=20une=20exception=20si=20charge?= =?UTF-8?q?r=5Ffonction=5Furl()=20ne=20trouve=20pas=20de=20fonction=20de?= =?UTF-8?q?=20g=C3=A9n=C3=A9ration=20d'URL=20(report=20de=200de382ea171a39?= =?UTF-8?q?654970581bbc3b9459f20fdef2=20pour=20SPIP=205.0=20:=20charger=5F?= =?UTF-8?q?fonction=5Furl()=20est=20maintenant=20dans=20bootstrap/inc/load?= =?UTF-8?q?ing.php)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fix: #5884 --- ecrire/bootstrap/inc/loading.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ecrire/bootstrap/inc/loading.php b/ecrire/bootstrap/inc/loading.php index 6045850ad9..ec2fa9fff0 100644 --- a/ecrire/bootstrap/inc/loading.php +++ b/ecrire/bootstrap/inc/loading.php @@ -249,7 +249,8 @@ function charger_fonction_url(string $quoi, string $type = '') { if (!$type && $url_type !== 'page') { return charger_fonction_url($quoi, 'page'); } - return ''; + // si on arrive ici c'est qu'il manque une fonction de traitement : lever une erreur + throw new \Exception(sprintf('Missing a url function for type %s : %s', $url_type, "urls_{$url_type}_{$fquoi}()")); } } -- GitLab