|
@@ 339-343 (lines=5) @@
|
| 336 |
|
return; |
| 337 |
|
} |
| 338 |
|
|
| 339 |
|
if (isset($crit->param[0])) { |
| 340 |
|
$quoi = calculer_liste($crit->param[0], $idb, $boucles, $boucles[$idb]->id_parent); |
| 341 |
|
} else { |
| 342 |
|
$quoi = '(isset($Pile[0]["recherche"])?$Pile[0]["recherche"]:(isset($GLOBALS["recherche"])?$GLOBALS["recherche"]:""))'; |
| 343 |
|
} |
| 344 |
|
|
| 345 |
|
$_modificateur = var_export($boucle->modificateur, true); |
| 346 |
|
$boucle->hash .= ' |
|
@@ 1075-1078 (lines=4) @@
|
| 1072 |
|
} else { |
| 1073 |
|
$order = "' DESC'"; |
| 1074 |
|
// Classement par ordre inverse fonction eventuelle de #ENV{...} |
| 1075 |
|
if (isset($crit->param[0])) { |
| 1076 |
|
$critere = calculer_liste($crit->param[0], $idb, $boucles, $boucles[$idb]->id_parent); |
| 1077 |
|
$order = "(($critere)?' DESC':'')"; |
| 1078 |
|
} |
| 1079 |
|
|
| 1080 |
|
$n = count($boucle->order); |
| 1081 |
|
if (!$n) { |
|
@@ 1609-1613 (lines=5) @@
|
| 1606 |
|
*/ |
| 1607 |
|
function critere_where_dist($idb, &$boucles, $crit) { |
| 1608 |
|
$boucle = &$boucles[$idb]; |
| 1609 |
|
if (isset($crit->param[0])) { |
| 1610 |
|
$_where = calculer_liste($crit->param[0], $idb, $boucles, $boucle->id_parent); |
| 1611 |
|
} else { |
| 1612 |
|
$_where = 'spip_sanitize_from_request(@$Pile[0]["where"],"where","vide")'; |
| 1613 |
|
} |
| 1614 |
|
|
| 1615 |
|
if ($crit->cond) { |
| 1616 |
|
$_where = "((\$zzw = $_where) ? \$zzw : '')"; |