X-Git-Url: http://git.cyclocoop.org/?p=velocampus%2Fweb%2Fwww.git;a=blobdiff_plain;f=www%2Fecrire%2Fpublic%2Fdecompiler.php;fp=www%2Fecrire%2Fpublic%2Fdecompiler.php;h=8daa1edf3439bf469e7a4837c6dedb41de1b13cd;hp=b7b5482a419a00526142d23bd6bf6b26da917fb0;hb=e99f0878011913365e49b30d90e496c24c301393;hpb=80b4d3e85f78d402ed2e73f8f5d1bf4c19962eed diff --git a/www/ecrire/public/decompiler.php b/www/ecrire/public/decompiler.php index b7b5482..8daa1ed 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-2011 * + * 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]= public_decompiler($v, $fmt, $prof); + $args[$k]= public_decompiler($v, $fmt, $prof); } $filtres = decompiler_liste($struct->param, $fmt, $prof); $f = 'format_idiome_' . ($fmt ? $fmt : _EXTENSION_SQUELETTES); - 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)