Project

General

Profile

« Previous | Next » 

Revision e0613197

Added by Andreas Kohlbecker over 7 years ago

fix #3650 visibility of distribution and specimen maps configurable - bug fix

View differences:

modules/cdm_dataportal/includes/descriptions.inc
861 861
    // --- Distribution map
862 862
    $distribution_map_query_parameters = NULL;
863 863

  
864
    if(variable_get(DISTRIBUTION_MAP_VISIBILITY) == 'always' ||
865
        variable_get(DISTRIBUTION_MAP_VISIBILITY) == 'automatic' && isset($descriptionElements['DistributionInfoDTO']->mapUriParams)
864
    $map_visibility = variable_get(DISTRIBUTION_MAP_VISIBILITY, DISTRIBUTION_MAP_VISIBILITY_DEFAULT);
865
    if(variable_get(DISTRIBUTION_MAP_VISIBILITY, DISTRIBUTION_MAP_VISIBILITY_DEFAULT) == 'always' ||
866
        $map_visibility == 'automatic' && isset($descriptionElements['DistributionInfoDTO']->mapUriParams)
866 867
      )
867 868
    {
868 869
      $distribution_map_query_parameters = $descriptionElements['DistributionInfoDTO']->mapUriParams;

Also available in: Unified diff