Skip to content
Extraits de code Groupes Projets
Valider 8ebd0a05 rédigé par esj's avatar esj
Parcourir les fichiers

rubon0 essayé systématiquement

parent 72f63f51
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -38,8 +38,9 @@ function calcule_logo($type, $onoff, $id, $id_rubrique, $lien, $align, $ff){ ...@@ -38,8 +38,9 @@ function calcule_logo($type, $onoff, $id, $id_rubrique, $lien, $align, $ff){
'SITE' => 'site' 'SITE' => 'site'
); );
$type = $table_logos[$type]; $type = $table_logos[$type];
# attention au cas $id = '0' pour LOGO_SITE_SPIP ==> intval # attention au cas $id = '0' pour LOGO_SITE_SPIP
while ($id) { # utiliser intval et toujours faire au moins un essai
while (1) {
$on = cherche_image_nommee($type . $onoff . intval($id)); $on = cherche_image_nommee($type . $onoff . intval($id));
if ($on) if ($on)
{ if ($ff) { if ($ff)
...@@ -56,8 +57,8 @@ function calcule_logo($type, $onoff, $id, $id_rubrique, $lien, $align, $ff){ ...@@ -56,8 +57,8 @@ function calcule_logo($type, $onoff, $id, $id_rubrique, $lien, $align, $ff){
else if ($id_rubrique) else if ($id_rubrique)
{$type = 'rub'; $id = $id_rubrique; $id_rubrique = 0;} {$type = 'rub'; $id = $id_rubrique; $id_rubrique = 0;}
else if ($type = 'rub') $id = sql_parent($id); else if ($type = 'rub') $id = sql_parent($id);
if (!$id) return '';
} }
return '';
} }
// Renvoie le code html pour afficher le logo, avec ou sans survol, avec ou sans lien, etc. // Renvoie le code html pour afficher le logo, avec ou sans survol, avec ou sans lien, etc.
......
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