diff --git a/includes/openlayers.render.inc b/includes/openlayers.render.inc index e8357b3..d8d614b 100644 --- a/includes/openlayers.render.inc +++ b/includes/openlayers.render.inc @@ -126,10 +126,13 @@ function _openlayers_styles_process($styles = array(), // Update URLs to support different types of paths foreach ($processed as $k => $style) { + if (!empty($style['externalGraphic'])) { // Check full URL or absolute path if (!valid_url($style['externalGraphic'], TRUE) - && strpos($style['externalGraphic'], '/') !== 0) { + && strpos($style['externalGraphic'], '/') !== 0 + //check for attribute + && strpos($style['externalGraphic'],'${') !== 0) { // Make full URL from Drupal path $processed[$k]['externalGraphic'] = openlayers_style_path($style['externalGraphic']); } @@ -180,4 +183,4 @@ function openlayers_style_path($path) { $path = str_replace('%24%7B', '${', $path); $path = str_replace('%7D', '}', $path); return $path; -} +} \ No newline at end of file