/***************************************************************************\
* 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. *
';
// 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);