From 5c1b3ada7f33d89e0003f12e98c7ba0f046d4c58 Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Wed, 13 Apr 2005 13:40:14 +0000 Subject: [PATCH] Modification de print_all_ways --- htdocs/categories/categorie.class.php | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/htdocs/categories/categorie.class.php b/htdocs/categories/categorie.class.php index b8574d3ed98..1b9f66903c0 100644 --- a/htdocs/categories/categorie.class.php +++ b/htdocs/categories/categorie.class.php @@ -527,7 +527,7 @@ class Categorie * Retourne les chemin de la catégorie, avec les noms des catégories * séparés par $sep (" >> " par défaut) */ - function print_all_ways ($sep = " >> ") + function print_all_ways ($sep = " >> ", $url='') { $ways = array (); @@ -536,7 +536,14 @@ class Categorie $w = array (); foreach ($way as $cat) { - $w[] = "".$cat->label.""; + if ($url == '') + { + $w[] = "".$cat->label.""; + } + else + { + $w[] = "".$cat->label.""; + } } $ways[] = implode ($sep, $w); } @@ -544,6 +551,7 @@ class Categorie return $ways; } + /** * get_primary_way() affiche le chemin le plus court pour se rendre à un produit */