From a9b46de581dc45ba333857bbb3f622f8cf46acfb Mon Sep 17 00:00:00 2001
From: Damien Burel <damien.burel@maarch.org>
Date: Fri, 20 Nov 2015 15:52:59 +0000
Subject: [PATCH] FIX #3070 fix xecho for breadcrumb

---
 core/trunk/core/class/class_functions.php | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/core/trunk/core/class/class_functions.php b/core/trunk/core/class/class_functions.php
index de08afb9a22..a56748ba25c 100644
--- a/core/trunk/core/class/class_functions.php
+++ b/core/trunk/core/class/class_functions.php
@@ -517,7 +517,7 @@ class functions
             if(bar != null)
             {
                 var link1 = document.createElement("a");
-                link1.href='<?php functions::xecho($_SESSION['location_bar']['level1']['path']);?>';
+                link1.href='<?php echo($_SESSION['location_bar']['level1']['path']);?>';
                 var label1 = document.createTextNode("<?php functions::xecho($_SESSION['location_bar']['level1']['label']);?>");
                 link1.appendChild(label1);
                 bar.appendChild(link1);
@@ -533,7 +533,7 @@ class functions
                     if(bar != null)
                     {
                         var link1 = document.createElement("a");
-                        link1.href='<?php functions::xecho($_SESSION['location_bar']['level1']['path']);?>';
+                        link1.href='<?php echo($_SESSION['location_bar']['level1']['path']);?>';
                         var label1 = document.createTextNode("<?php functions::xecho($_SESSION['location_bar']['level1']['label']);?>");
                         link1.appendChild(label1);
                         bar.appendChild(link1);
@@ -551,14 +551,14 @@ class functions
                         if(bar != null)
                         {
                             var link1 = document.createElement("a");
-                            link1.href='<?php functions::xecho($_SESSION['location_bar']['level1']['path']);?>';
+                            link1.href='<?php echo($_SESSION['location_bar']['level1']['path']);?>';
                             var label1 = document.createTextNode("<?php functions::xecho($_SESSION['location_bar']['level1']['label']);?>");
                             link1.appendChild(label1);
                             bar.appendChild(link1);
                             var text1 = document.createTextNode(" > ");
                             bar.appendChild(text1);
                             var link2 = document.createElement("a");
-                            link2.href='<?php functions::xecho($_SESSION['location_bar']['level2']['path']);?>';
+                            link2.href='<?php echo($_SESSION['location_bar']['level2']['path']);?>';
                             var label2 = document.createTextNode("<?php functions::xecho($_SESSION['location_bar']['level2']['label']);?>");
                             link2.appendChild(label2);
                             bar.appendChild(link2);
@@ -574,21 +574,21 @@ class functions
                         if(bar != null)
                         {
                             var link1 = document.createElement("a");
-                            link1.href='<?php functions::xecho($_SESSION['location_bar']['level1']['path']);?>';
+                            link1.href='<?php echo($_SESSION['location_bar']['level1']['path']);?>';
                             var label1 = document.createTextNode("<?php functions::xecho($_SESSION['location_bar']['level1']['label']);?>");
                             link1.appendChild(label1);
                             bar.appendChild(link1);
                             var text1 = document.createTextNode(" > ");
                             bar.appendChild(text1);
                             var link2 = document.createElement("a");
-                            link2.href='<?php functions::xecho($_SESSION['location_bar']['level2']['path']);?>';
+                            link2.href='<?php echo($_SESSION['location_bar']['level2']['path']);?>';
                             var label2 = document.createTextNode("<?php functions::xecho($_SESSION['location_bar']['level2']['label']);?>");
                             link2.appendChild(label2);
                             bar.appendChild(link2);
                             var text2 = document.createTextNode(" > ");
                             bar.appendChild(text2);
                             var link3 = document.createElement("a");
-                            link3.href='<?php functions::xecho($_SESSION['location_bar']['level3']['path']);?>';
+                            link3.href='<?php echo($_SESSION['location_bar']['level3']['path']);?>';
                             var label3 = document.createTextNode("<?php functions::xecho($_SESSION['location_bar']['level3']['label']);?>");
                             link3.appendChild(label3);
                             bar.appendChild(link3);
-- 
GitLab