mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Added forced refresh for generic images widget
This commit is contained in:
@ -58,5 +58,11 @@ if( defined('show_settings') || empty($widget_settings) ) {
|
||||
}
|
||||
else {
|
||||
$widget_settings['title'] = $widget_settings['image_title'];
|
||||
if (strstr($widget_settings['image_url'], '?')) {
|
||||
$widget_settings['image_url'] .= "&".mt_rand();
|
||||
}
|
||||
else {
|
||||
$widget_settings['image_url'] .= "?".mt_rand();
|
||||
}
|
||||
$common_output[] = '<a target="_blank" href="'.$widget_settings['target_url'].'"><img class="minigraph-image" style="max-width: '.$widget_dimensions['x'].'px; max-height:'.$widget_dimensions['y'].'px;" src="'.$widget_settings['image_url'].'"/></a>';
|
||||
}
|
||||
|
Reference in New Issue
Block a user