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

eviter des warnings polluants quand le cookie n'est pas la

parent 8f5d05e9
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -87,7 +87,7 @@ function calendrier_href($script, $annee, $mois, $jour, $type, $fin, $ancre, $im ...@@ -87,7 +87,7 @@ function calendrier_href($script, $annee, $mois, $jour, $type, $fin, $ancre, $im
$moi = preg_match("/exec=" . $GLOBALS['exec'] .'$/', $script); $moi = preg_match("/exec=" . $GLOBALS['exec'] .'$/', $script);
if ($img) $clic = http_img_pack($img, ($alt ? $alt : $titre), $c); if ($img) $clic = http_img_pack($img, ($alt ? $alt : $titre), $c);
// pas d'Ajax pour l'espace public pour le moment ou si indispo // pas d'Ajax pour l'espace public pour le moment ou si indispo
if (_DIR_RESTREINT || ($_COOKIE['spip_accepte_ajax'] != 1 ) || !$moi) if (_DIR_RESTREINT || !$moi || (isset($_COOKIE['spip_accepte_ajax']) && ($_COOKIE['spip_accepte_ajax'] != 1 )))
return http_href("$h$a", $clic, $titre, $style, $class, $evt); return http_href("$h$a", $clic, $titre, $style, $class, $evt);
else { else {
......
...@@ -472,7 +472,7 @@ function gadget_messagerie() { ...@@ -472,7 +472,7 @@ function gadget_messagerie() {
// http://doc.spip.org/@repercuter_gadgets // http://doc.spip.org/@repercuter_gadgets
function repercuter_gadgets($id_rubrique) { function repercuter_gadgets($id_rubrique) {
if ($_COOKIE['spip_accepte_ajax'] == -1) return ''; if (isset($_COOKIE['spip_accepte_ajax']) && ($_COOKIE['spip_accepte_ajax'] == -1)) return '';
$rub = $id_rubrique ? "\\x26id_rubrique=$id_rubrique" : ''; $rub = $id_rubrique ? "\\x26id_rubrique=$id_rubrique" : '';
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter