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

Report de r20032 : Utiliser generer_info_entite pour afficher les titre des...

Report de r20032 : Utiliser generer_info_entite pour afficher les titre des rubriques et etre sur que l'on passe bien par tous les traitements eventuellements personalisés dans la table_des_traitements
parent aa128bf4
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -43,7 +43,9 @@ function enfant_rub($collection,$debut=0,$limite=500){ ...@@ -43,7 +43,9 @@ function enfant_rub($collection,$debut=0,$limite=500){
while($row=sql_fetch($result)){ while($row=sql_fetch($result)){
$id_rubrique=$row['id_rubrique']; $id_rubrique=$row['id_rubrique'];
$id_parent=$row['id_parent']; $id_parent=$row['id_parent'];
$titre=$row['titre']; $titre=generer_info_entite($id_rubrique,'rubrique','titre'); // pour etre sur de passer par tous les traitements
if ($rang = recuperer_numero($row['titre']))
$rang = "$rang. ";
if (autoriser('voir','rubrique',$id_rubrique)){ if (autoriser('voir','rubrique',$id_rubrique)){
...@@ -67,7 +69,7 @@ function enfant_rub($collection,$debut=0,$limite=500){ ...@@ -67,7 +69,7 @@ function enfant_rub($collection,$debut=0,$limite=500){
" <a dir='$lang_dir' href='" . " <a dir='$lang_dir' href='" .
generer_url_entite($id_rubrique,'rubrique') . generer_url_entite($id_rubrique,'rubrique') .
"'>". "'>".
typo($titre) . $rang . $titre .
"</a>"; "</a>";
$titre = (is_string($logo) ? $logo : '') . $titre = (is_string($logo) ? $logo : '') .
...@@ -118,11 +120,14 @@ function sous_enfant_rub($collection2){ ...@@ -118,11 +120,14 @@ function sous_enfant_rub($collection2){
while($row=sql_fetch($result)){ while($row=sql_fetch($result)){
$id_rubrique2=$row['id_rubrique']; $id_rubrique2=$row['id_rubrique'];
$id_parent2=$row['id_parent']; $id_parent2=$row['id_parent'];
$titre2=$row['titre']; $titre2=generer_info_entite($id_rubrique2,'rubrique','titre'); // pour etre sur de passer par tous les traitements
if ($rang2 = recuperer_numero($row['titre']))
$rang2 = "$rang2. ";
changer_typo($row['lang']); changer_typo($row['lang']);
$lang_dir = lang_dir($row['lang']); $lang_dir = lang_dir($row['lang']);
if (autoriser('voir','rubrique',$id_rubrique2)) if (autoriser('voir','rubrique',$id_rubrique2))
$retour.="\n<li class='item' dir='$lang_dir'><a href='" . generer_url_entite($id_rubrique2,'rubrique') . "'>".typo($titre2)."</a></li>\n"; $retour.="\n<li class='item' dir='$lang_dir'><a href='" . generer_url_entite($id_rubrique2,'rubrique') . "'>".$rang2.$titre2."</a></li>\n";
} }
$retour = $pagination.$retour.$pagination; $retour = $pagination.$retour.$pagination;
......
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