1 system.install system_update_1070()

Set file_temporary_path on existing sites, if not already set.

Related topics

File

core/modules/system/system.install, line 3110
Install, update and uninstall functions for the system module.

Code

function system_update_1070() {
  $config = config('system.core');
  if ($config->get('file_temporary_path') == NULL) {
    $config->set('file_temporary_path', file_directory_temp());
    $config->save();
  }
}