// Fixed Tools::jsonEncode() on Tools.php

This commit is contained in:
Francois Gaillard committed 2013-04-11 10:28:38 +02:00
1 parent bfd3e40ab3
commit 9c3417bfff
1 file changed
+3 -1
+3 -1
View File
@@ -720,8 +720,10 @@ class ToolsCore
echo '<xmp style="text-align: left;">'; echo '<xmp style="text-align: left;">';
print_r($object); print_r($object);
echo '</xmp><br />'; echo '</xmp><br />';
if ($kill) if ($kill)
die('END'); die('END');
return $object; return $object;
} }
@@ -739,7 +741,7 @@ class ToolsCore
echo ' echo '
<script type="text/javascript"> <script type="text/javascript">
console.'.$type.'('.json_encode($object).'); console.'.$type.'('.Tools::jsonEncode($object).');
</script> </script>
'; ';
} }