Merge pull request #10388 from hregis/9.0_bug
FIX JSON.parse not needeed and missing simple quote escaping
This commit is contained in:
commit
c6fe94c455
@ -58,7 +58,7 @@ top_htmlhead($head, $title, $disablejs, $disablehead, $arrayofjs, $arrayofcss);
|
||||
$categorie = new Categorie($db);
|
||||
$categories = $categorie->get_full_arbo('product');
|
||||
?>
|
||||
var categories = JSON.parse( '<?php echo json_encode($categories);?>' );
|
||||
var categories = <?php echo json_encode($categories); ?>;
|
||||
var currentcat;
|
||||
var pageproducts=0;
|
||||
var pagecategories=0;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user