mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-31 01:35:36 +02:00
#8053 Fixed refresh in public dashboard
This commit is contained in:
parent
35c877ad79
commit
59c1a10056
@ -29,8 +29,6 @@
|
|||||||
// Button for display full screen mode.
|
// Button for display full screen mode.
|
||||||
global $config;
|
global $config;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
$queryFull = [
|
$queryFull = [
|
||||||
'dashboardId' => $dashboardId,
|
'dashboardId' => $dashboardId,
|
||||||
'refr' => $refr,
|
'refr' => $refr,
|
||||||
@ -141,10 +139,11 @@ $publiclink['text'] .= html_print_image(
|
|||||||
);
|
);
|
||||||
$publiclink['text'] .= '</a>';
|
$publiclink['text'] .= '</a>';
|
||||||
|
|
||||||
|
// Check if it is a public dashboard.
|
||||||
|
$public_dashboard_hash = get_parameter('hash', false);
|
||||||
|
|
||||||
// Refresh selector time dashboards.
|
// Refresh selector time dashboards.
|
||||||
if (isset($config['public_dashboard']) === true
|
if ($public_dashboard_hash !== false) {
|
||||||
&& (bool) $config['public_dashboard'] === true
|
|
||||||
) {
|
|
||||||
$urlRefresh = $publicUrl;
|
$urlRefresh = $publicUrl;
|
||||||
} else {
|
} else {
|
||||||
$queryRefresh = [
|
$queryRefresh = [
|
||||||
|
Loading…
x
Reference in New Issue
Block a user