From e412addcaa8df58673119fedf6e189bc1726c2ab Mon Sep 17 00:00:00 2001 From: Peter Philipp Date: Thu, 8 Dec 2011 11:38:23 +0100 Subject: [PATCH] openlayers_style_path() must not use language prefixes in returned url. --- includes/openlayers.render.inc | 12 ++++++++---- 1 files changed, 8 insertions(+), 4 deletions(-) diff --git a/includes/openlayers.render.inc b/includes/openlayers.render.inc index a2aa40c..e78d76e 100644 --- a/includes/openlayers.render.inc +++ b/includes/openlayers.render.inc @@ -215,8 +215,12 @@ function _openlayers_create_map_id() { * Processed path. */ function openlayers_style_path($path) { - $path = url($path, array('absolute' => TRUE)); - $path = str_replace('%24%7B', '${', $path); - $path = str_replace('%7D', '}', $path); - return $path; + // Ensure there's no language prefix for files. + $language = new stdClass(); + $language->language = 'en'; + $language->prefix = NULL; + $path = url($path, array('absolute' => TRUE, 'language' => $language)); + $path = str_replace('%24%7B', '${', $path); + $path = str_replace('%7D', '}', $path); + return $path; } -- 1.7.7.msysgit.1