Added forced refresh for generic images widget

This commit is contained in:
laf
2016-07-10 00:42:33 +01:00
parent 8ffc889492
commit a6723d954a

View File

@ -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>';
}