From 37769a276f11f1fcef8f95795ccf10cda97380fb Mon Sep 17 00:00:00 2001 From: Fred Tempez Date: Tue, 3 Dec 2019 14:49:38 +0100 Subject: [PATCH] [9.2.13] Corrige le codage dans la liste des pages tinymce --- core/core.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/core/core.php b/core/core.php index 374f3336..a6b55ddb 100644 --- a/core/core.php +++ b/core/core.php @@ -561,23 +561,23 @@ class common { if ($this->getData(['page', $parentId, 'block']) !== 'bar' ) { // Boucler sur les enfants et récupérer le tableau children avec la liste des enfants foreach($childIds as $childId) { - $children [] = [ 'title' => ' » '. $this->getData(['page', $childId, 'title']) , + $children [] = [ 'title' => ' » '. html_entity_decode($this->getData(['page', $childId, 'title']), ENT_QUOTES) , 'value'=> $rewrite.$childId ]; } // Traitement if (empty($childIds)) { // Pas d'enfant, uniuement l'entrée du parent - $parents [] = ['title' => $this->getData(['page', $parentId, 'title']) , + $parents [] = ['title' => html_entity_decode($this->getData(['page', $parentId, 'title']), ENT_QUOTES) , 'value'=> $rewrite.$parentId ]; } else { // Des enfants, on ajoute la page parent en premier - array_unshift ($children , ['title' => $this->getData(['page', $parentId, 'title']) , + array_unshift ($children , ['title' => html_entity_decode($this->getData(['page', $parentId, 'title']), ENT_QUOTES) , 'value'=> $rewrite.$parentId ]); // puis on ajoute les enfants au parent - $parents [] = ['title' => $this->getData(['page', $parentId, 'title']) , + $parents [] = ['title' => html_entity_decode($this->getData(['page', $parentId, 'title']), ENT_QUOTES) , 'value'=> $rewrite.$parentId , 'menu' => $children ];