From 4f706d9423851b1ee78e409f4e23328130c19f85 Mon Sep 17 00:00:00 2001 From: "Alexander A. Klimov" Date: Tue, 16 Jan 2018 17:58:35 +0100 Subject: [PATCH] Donut: place HTML tags outside refs #3226 --- library/Icinga/Chart/Donut.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/library/Icinga/Chart/Donut.php b/library/Icinga/Chart/Donut.php index 1efc9546b..801b78d47 100644 --- a/library/Icinga/Chart/Donut.php +++ b/library/Icinga/Chart/Donut.php @@ -274,6 +274,11 @@ class Donut $offset -= $slice[0]; } + $result = array( + 'tag' => 'div', + 'content' => array($svg) + ); + if ($this->getLabelBig() || $this->getLabelSmall()) { $labels = array( 'tag' => 'div', @@ -307,10 +312,10 @@ class Donut ); } - $svg['content'][] = $labels; + $result['content'][] = $labels; } - return $svg; + return $result; } /**