From 08010b5b4302c0ab03300fb6765989d97da08d3e Mon Sep 17 00:00:00 2001 From: Cerdic <cedric@yterium.com> Date: Fri, 30 Jul 2010 20:53:28 +0000 Subject: [PATCH] Report de [15841] --- ecrire/inc/filtres.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/ecrire/inc/filtres.php b/ecrire/inc/filtres.php index 48a279e19d..b1c73f0b3b 100644 --- a/ecrire/inc/filtres.php +++ b/ecrire/inc/filtres.php @@ -15,6 +15,16 @@ if (!defined("_ECRIRE_INC_VERSION")) return; include_spip('inc/charsets'); include_spip('inc/filtres_mini'); +/** + * Charger un filtre depuis le php : + * - on inclue tous les fichiers fonctions des plugins et du skel + * - on appelle chercher_filtre + */ +function charger_filtre($fonc, $default=NULL) { + include_spip('public/parametrer'); // inclure les fichiers fonctions + return chercher_filtre($fonc, $default); +} + // http://adoc.spip.org/@chercher_filtre function chercher_filtre($fonc, $default=NULL) { if (!$fonc) return $default; -- GitLab