Project

General

Profile

« Previous | Next » 

Revision b4a5c2be

Added by Andreas Kohlbecker about 8 years ago

replacing outdated method http_send_status() by http_response_code()

View differences:

modules/cdm_dataportal/cdm_dataportal.module
2280 2280

  
2281 2281
  if(!in_array($chapter, $taxon_tabs)){
2282 2282
    // oops this is not a valid chapter name
2283
    http_send_status(404); // 404 = Not Found
2283
    http_response_code(404); // 404 = Not Found
2284 2284
  }
2285 2285

  
2286 2286
}
......
2295 2295
  $ends_with_file_suffix_pattern = '/\/[^\.\/]*[\.][^\.\/]*$/';
2296 2296
  if(preg_match($ends_with_file_suffix_pattern, $_GET['q'])){
2297 2297
    // oops this urls ends with a file_suffix and thus does not refer to a portal page
2298
    http_send_status(404); // 404 = Not Found
2298
    http_response_code(404); // 404 = Not Found
2299 2299
    exit('HTTP 404');
2300 2300
  }
2301 2301
}

Also available in: Unified diff