Commit a6090656 authored by Edward Radau's avatar Edward Radau Committed by Andrii Podanenko
Browse files

Issue #2692971 by edward.radau: Custom markers dir appears useless after update

parent 5f93cc58
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -15,6 +15,10 @@
 */
function gmap_gmap_markerfiles_info() {
  $markerdirs = variable_get('gmap_markerfiles', array(drupal_get_path('module', 'gmap') . '/markers'));
  $markercustomdir = variable_get('gmap_marker_custom_dir', NULL);
  if ($markercustomdir) {
    $markerdirs[] = $markercustomdir;
  }

  if (module_exists('libraries')) {
    $markercustomdir = libraries_get_path('gmap_markers');