--- gmap.original 2011-07-12 00:50:54.502608714 +0200 +++ gmap.module 2011-07-12 00:56:55.902608428 +0200 @@ -547,7 +547,7 @@ function gmap_regenerate_markers() { $contents .= "Drupal.gmap.iconpath = " . drupal_json_encode(base_path() . variable_get('gmap_markerfiles',$ $contents .= "Drupal.gmap.icondata = " . drupal_json_encode(gmap_get_icondata(TRUE)) . ";\n"; - $dir = "public://js/"; + $dir = $base_path . "/sites/default/files/js/"; // Make sure js/ exists in the files folder. if (file_prepare_directory($dir, FILE_CREATE_DIRECTORY)) {