Project

General

Profile

« Previous | Next » 

Revision df7eab6b

Added by Andreas Kohlbecker about 8 years ago

more consistent error logging

View differences:

modules/cdm_dataportal/cdm_api/cdm_api.module
785 785
    $pathParameters = array();
786 786
  }
787 787

  
788
  $request_params = '';
789
  $path_params = '';
790

  
791 788
  // (1)
792 789
  // Substitute all place holders ($0, $1, ..) in the $uri_pattern by the
793 790
  // according element of the $pathParameters array.
......
800 797
  $i = 0;
801 798
  while (strpos($uri_pattern, "$" . $i) !== FALSE) {
802 799
    if (count($pathParameters) <= $i) {
803
      if (module_exists("user") && user_access('administer')) {
804
        drupal_set_message(t('cdm_compose_url(): missing pathParameters'), 'debug');
805
      }
800
        drupal_set_message(t('cdm_compose_url(): missing pathParameter ' . $i .  ' for ' . $uri_pattern), 'error');
806 801
      break;
807 802
    }
808 803
    $uri_pattern = str_replace("$" . $i, rawurlencode($pathParameters[$i]), $uri_pattern);

Also available in: Unified diff