1 update.module _update_checking_enabled()

Check if update checking should make HTTP requests to the update server.

This function primarily is to ensure that Backdrop does not do update checking against backdropcms.org or other remote servers during tests.

File

core/modules/update/update.module, line 240
Handles update checking for Backdrop core and contributed projects.

Code

function _update_checking_enabled() {
  return empty($GLOBALS['backdrop_test_info']['test_run_id']) || strstr(config_get('update.settings', 'update_url'), $GLOBALS['base_url']);
}