Fixed problems with parents lines objects. Tiquet: #3936

This commit is contained in:
m-lopez-f 2016-08-16 12:16:01 +02:00
parent 9c256623d0
commit 0d8761d009
1 changed files with 14 additions and 15 deletions

View File

@ -66,27 +66,26 @@ if (! $layout) {
exit;
}
if (!isset($config['pure']))
$config['pure'] = 0;
//~ $xhr = (bool) get_parameter('xhr');
if ($layout) {
$id_group = $layout["id_group"];
$layout_name = $layout["name"];
$background = $layout["background"];
$bwidth = $layout["width"];
$bheight = $layout["height"];
//~ $width = (int) get_parameter('width');
//~ if ($width <= 0) $width = null;
//~ $height = (int) get_parameter('height');
//~ if ($height <= 0) $height = null;
if (!isset($config['pure']))
$config['pure'] = 0;
$xhr = (bool) get_parameter('xhr');
if ($xhr) {
$width = (int) get_parameter('width');
if ($width <= 0) $width = null;
$height = (int) get_parameter('height');
if ($height <= 0) $height = null;
ob_start();
// Render map
//~ ob_start();
//~ // Render map
visual_map_print_visual_map($id_layout, true, true, $width, $height,
'../../', true, $graph_javascript, true);
return;
//~ return;
}
else {
echo '<div id="vc-container"></div>';