X-Git-Url: http://git.cyclocoop.org/?p=velocampus%2Fweb%2Fwww.git;a=blobdiff_plain;f=www%2Fecrire%2Fpublic%2Fbalises.php;h=b7bee3dd94e09b99f218353bb9e9487cd54875f6;hp=0d641d683ebbc44114657e71bb2a226ce357baed;hb=e99f0878011913365e49b30d90e496c24c301393;hpb=80b4d3e85f78d402ed2e73f8f5d1bf4c19962eed diff --git a/www/ecrire/public/balises.php b/www/ecrire/public/balises.php index 0d641d6..b7bee3d 100644 --- a/www/ecrire/public/balises.php +++ b/www/ecrire/public/balises.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. * @@ -589,8 +589,8 @@ function balise_PARAMETRES_FORUM_dist($p) { '; // pas de calculs superflus si le site est monolingue $lang = strpos($GLOBALS['meta']['langues_utilisees'], ','); - - switch ($p->type_requete) { + $idb = $p->id_boucle; + switch (!isset($p->boucles[$idb])? '' : $p->boucles[$idb]->type_requete) { case 'articles': $c = '"id_article=".' . champ_sql('id_article', $p); if ($lang) $lang = champ_sql('lang', $p);