Projet

Général

Profil

Révision e4c061ad

Ajouté par Assos Assos il y a plus de 9 ans

Weekly update of contrib modules

Voir les différences:

drupal7/sites/all/modules/i18n/i18n_string/i18n_string.pages.inc
398 398
  // Invoke locale submission.
399 399
  locale_translate_edit_form_submit($form, $form_state);
400 400
  $lid = $form_state['values']['lid'];
401
  $i18n_string_object = i18n_string_get_by_lid($lid);
402
  $i18n_string_object->cache_reset();
401
  if ($i18n_string_object = i18n_string_get_by_lid($lid)) {
402
    $i18n_string_object->cache_reset();
403
  }
403 404
  foreach ($form_state['values']['translations'] as $key => $value) {
404 405
    if (!empty($value)) {
405 406
      // An update has been made, so we assume the translation is now current.

Formats disponibles : Unified diff