From 7fd49fd33da7575843415fb097527cb9cb422004 Mon Sep 17 00:00:00 2001 From: fredtempez Date: Wed, 8 Jan 2020 17:58:13 +0100 Subject: [PATCH] [9.2.17] fix breadcrumb --- CHANGES.md | 4 ++++ core/core.php | 6 +++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index 6d75f018..2aa608d5 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,5 +1,9 @@ # Changelog +## version 9.2.17 +- Corretion : + - Affiche le nom du la page plutôt que son id dans le fil d'ariane + ## version 9.2.16 - Optimisation : - Sauvegarde manuelle des données de site (dossiers file et data). diff --git a/core/core.php b/core/core.php index 4a7769d5..35ff675b 100644 --- a/core/core.php +++ b/core/core.php @@ -34,7 +34,7 @@ class common { const TEMP_DIR = 'site/tmp/'; // Numéro de version - const ZWII_VERSION = '9.2.16'; + const ZWII_VERSION = '9.2.17'; public static $actions = []; public static $coreModuleIds = [ @@ -1303,17 +1303,17 @@ class core extends common { } // Breadcrumb - $title = $this->getData(['page', $this->getUrl(0), 'title']); if (!empty($this->getData(['page', $this->getUrl(0), 'parentPageId'])) && $this->getData(['page', $this->getUrl(0), 'breadCrumb'])) { $title = '' . - ucfirst($this->getData(['page', $this->getUrl(0), 'parentPageId'])) . + ucfirst($this->getData(['page',$this->getData(['page', $this->getUrl(0), 'parentPageId']), 'title'])) . ' › '. $this->getData(['page', $this->getUrl(0), 'title']); } + // Importe la page if( $this->getData(['page', $this->getUrl(0)]) !== null