From 14e378859c292bc0c2c77c75b79ed9938f04ea2a Mon Sep 17 00:00:00 2001 From: Cerdic <cedric@yterium.com> Date: Wed, 4 Oct 2006 10:45:19 +0000 Subject: [PATCH] =?UTF-8?q?filtre=20concat=20pour=20concatener=20des=20cha?= =?UTF-8?q?ines=20indispensable=20pour=20ecrire=20certaines=20affectation?= =?UTF-8?q?=20dans=20#SET=20dans=20une=20partie=20optionelle=20apres=20de?= =?UTF-8?q?=20balise=20:=20[(#ENV{truc,''}|=3F{'=20'})=20#SET{machin,(#GET?= =?UTF-8?q?{machin})#ENV{truc}}]=20ne=20passe=20pas=20pour=20cause=20d'amb?= =?UTF-8?q?iguit=C3=A9=20il=20faut=20donc=20ecrire=20[(#ENV{truc,''}|=3F{'?= =?UTF-8?q?=20'})=20#SET{machin,#GET{machin}|concat{#ENV{truc}}}]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ecrire/inc/filtres.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/ecrire/inc/filtres.php b/ecrire/inc/filtres.php index 90d41fbea7..1801cb319e 100644 --- a/ecrire/inc/filtres.php +++ b/ecrire/inc/filtres.php @@ -1695,4 +1695,14 @@ function f_jQuery ($texte) { return $js.$texte; } +// Concatenet des chaines +// #TEXTE|concat{texte1,texte2,...} +function concat(){ + $tous = func_get_args(); + $texte = ""; + foreach($tous as $arg) + $texte.=$arg; + return $texte; +} + ?> -- GitLab