[Nagvis-checkins] SF.net Git: nagvis: Bugfix: Fixed re-fetching of background image after changed g
Brought to you by:
larsi-
From: lars <la...@us...> - 2012-06-27 11:33:59
|
Author: Lars Michelsen <lm...@la...> Date: Wed Jun 27 13:33:39 2012 +0200 Committer: Lars Michelsen <lm...@la...> Commit-Date: Wed Jun 27 13:33:39 2012 +0200 Bugfix: Fixed re-fetching of background image after changed geomap source file --- share/server/core/sources/geomap.php | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/share/server/core/sources/geomap.php b/share/server/core/sources/geomap.php index bd921d5..d060f28 100644 --- a/share/server/core/sources/geomap.php +++ b/share/server/core/sources/geomap.php @@ -132,7 +132,7 @@ function process_geomap($MAPCFG, $map_name, &$map_config) { // Adapt the global section $map_config[0] = $saved_config[0]; - $map_config[0]['map_image'] = $image_name; + $map_config[0]['map_image'] = $image_name.'?'.time(); $map_config[0]['iconset'] = $iconset; // Now add the objects to the map @@ -201,7 +201,6 @@ function process_geomap($MAPCFG, $map_name, &$map_config) { // Fetch the background image when needed if(!file_exists($image_path) || filemtime(geomap_source_file($params)) > filemtime($image_path)) { - error_log('(re)loading map image'); // Allow/enable proxy $contents = geomap_get_contents($url); file_put_contents($image_path, $contents); |