From a6723d954aeecb707097db57167f01a305490d33 Mon Sep 17 00:00:00 2001 From: laf Date: Sun, 10 Jul 2016 00:42:33 +0100 Subject: [PATCH] Added forced refresh for generic images widget --- html/includes/common/generic-image.inc.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/html/includes/common/generic-image.inc.php b/html/includes/common/generic-image.inc.php index 91f80ac1b3..8b6f59ffc0 100644 --- a/html/includes/common/generic-image.inc.php +++ b/html/includes/common/generic-image.inc.php @@ -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[] = ''; }