You are here

function l10n_update_update_7209 in Localization update 7.2

Update default variable values to use https.

File

./l10n_update.install, line 637
Install file for l10n remote updates.

Code

function l10n_update_update_7209() {
  $server_url = variable_get('l10n_client_server', '');
  if ($server_url == 'http://localize.drupal.org') {
    variable_set('l10n_client_server', 'https://localize.drupal.org');
  }
  $update_url = variable_get('l10n_update_default_update_url', '');
  if ($update_url == 'http://ftp.drupal.org/files/translations/%core/%project/%project-%release.%language.po') {
    variable_set('l10n_update_default_update_url', L10N_UPDATE_DEFAULT_SERVER_PATTERN);
  }
}