[SPIP] ~2.1.12 -->2.1.25
[velocampus/web/www.git] / www / ecrire / public / balises.php
index 0d641d6..b7bee3d 100644 (file)
@@ -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);