Skip to content
Extraits de code Groupes Projets
Valider ba90a31b rédigé par cerdic's avatar cerdic
Parcourir les fichiers

lever le flag session danc evaluer_fond directement

parent 35c7fd7a
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -1352,6 +1352,11 @@ function evaluer_fond ($fond, $contexte=array(), $options=array(), $connect=null ...@@ -1352,6 +1352,11 @@ function evaluer_fond ($fond, $contexte=array(), $options=array(), $connect=null
$fond = $contexte['fond']; $fond = $contexte['fond'];
$page = inclure_page($fond, $contexte, $connect); $page = inclure_page($fond, $contexte, $connect);
// Lever un drapeau (global) si le fond utilise #SESSION
// a destination de public/parametrer
if (isset($page['invalideurs'])
AND isset($page['invalideurs']['session']))
$GLOBALS['cache_utilise_session'] = $page['invalideurs']['session'];
if ($GLOBALS['flag_ob'] AND ($page['process_ins'] != 'html')) { if ($GLOBALS['flag_ob'] AND ($page['process_ins'] != 'html')) {
ob_start(); ob_start();
xml_hack($page, true); xml_hack($page, true);
......
...@@ -622,11 +622,6 @@ function recuperer_fond($fond, $contexte=array(), $trim=true, $connect='') { ...@@ -622,11 +622,6 @@ function recuperer_fond($fond, $contexte=array(), $trim=true, $connect='') {
foreach(is_array($fond) ? $fond : array($fond) as $f){ foreach(is_array($fond) ? $fond : array($fond) as $f){
$page = evaluer_fond($f, $contexte, $options, $connect); $page = evaluer_fond($f, $contexte, $options, $connect);
$texte .= $trim ? rtrim($page['texte']) : $page['texte']; $texte .= $trim ? rtrim($page['texte']) : $page['texte'];
// Lever un drapeau (global) si le modele utilise #SESSION
// a destination de public/parametrer
if (isset($page['invalideurs'])
AND isset($page['invalideurs']['session']))
$GLOBALS['cache_utilise_session'] = $page['invalideurs']['session'];
} }
return $trim ? ltrim($texte) : $texte; return $trim ? ltrim($texte) : $texte;
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter