X-Git-Url: http://git.cyclocoop.org/?p=lhc%2Fweb%2Fwww.git;a=blobdiff_plain;f=www%2Fecrire%2Fpublic%2Fdecompiler.php;fp=www%2Fecrire%2Fpublic%2Fdecompiler.php;h=7becebc6318e086349fd73eab1b47e1944c24d8e;hp=f6a778267d38c180c8580ed4ad03a0ff8426bef3;hb=122c920eb07e3f665789f8734965b576e6c25515;hpb=226942065cd4f604eb464addf45a065c9e5bc916 diff --git a/www/ecrire/public/decompiler.php b/www/ecrire/public/decompiler.php index f6a77826..7becebc6 100644 --- a/www/ecrire/public/decompiler.php +++ b/www/ecrire/public/decompiler.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2012 * + * Copyright (c) 2001-2014 * * Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James * * * * Ce programme est un logiciel libre distribue sous licence GNU/GPL. * @@ -71,18 +71,15 @@ function decompiler_polyglotte($struct, $fmt='', $prof=0) function decompiler_idiome($struct, $fmt='', $prof=0) { - $module = ($struct->module == MODULES_IDIOMES)? '' - : $struct->module; - $args = array(); foreach ($struct->arg as $k => $v) { - if ($k) $args[$k]= decompiler_($v, $fmt, $prof); + $args[$k]= public_decompiler($v, $fmt, $prof); } $filtres = decompiler_liste($struct->param, $fmt, $prof); $f = 'format_idiome_' . $fmt; - return $f($struct->nom_champ, $module, $args, $filtres, $prof); + return $f($struct->nom_champ, $struct->module, $args, $filtres, $prof); } function decompiler_champ($struct, $fmt='', $prof=0)