Skip to content
Snippets Groups Projects
Commit 3af249cc authored by Brandon Bergren's avatar Brandon Bergren
Browse files

#351912 by mleicester: Force gmap to properly respect a custom marker path.

parent 134619f6
No related branches found
No related tags found
No related merge requests found
...@@ -498,7 +498,7 @@ function gmap_regenerate_markers() { ...@@ -498,7 +498,7 @@ function gmap_regenerate_markers() {
file_check_directory($jspath, FILE_CREATE_DIRECTORY); file_check_directory($jspath, FILE_CREATE_DIRECTORY);
$contents .= "// GMap marker image data.\n"; $contents .= "// GMap marker image data.\n";
$contents .= "Drupal.gmap.iconpath = ". drupal_to_js(base_path() . drupal_get_path('module', 'gmap') .'/markers') .";\n"; $contents .= "Drupal.gmap.iconpath = ". drupal_to_js(base_path() . variable_get('gmap_markerfiles', drupal_get_path('module', 'gmap') .'/markers')) .";\n";
$contents .= "Drupal.gmap.icondata = ". drupal_to_js(gmap_get_icondata(TRUE)) .";\n"; $contents .= "Drupal.gmap.icondata = ". drupal_to_js(gmap_get_icondata(TRUE)) .";\n";
file_save_data($contents, "$jspath/gmap_markers.js", FILE_EXISTS_REPLACE); file_save_data($contents, "$jspath/gmap_markers.js", FILE_EXISTS_REPLACE);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment