Projet

Général

Profil

Révision e0d35157

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

Weekly update of contrib modules

Voir les différences:

drupal7/sites/all/modules/i18n/i18n_string/i18n_string.inc
703 703
      // Create source string so we get an lid
704 704
      $this->save_source($string);
705 705
    }
706

  
707
    // Convert objectid to objectkey if it's numeric.
706 708
    if (!isset($string->objectkey)) {
707
      $string->objectkey = (int)$string->objectid;
709
      if (is_numeric($string->objectid)) {
710
        $string->objectkey = (int)$string->objectid;
711
      }
708 712
    }
713

  
714
    // Make sure objectkey is numeric.
715
    if (!is_numeric($string->objectkey)) {
716
      $string->objectkey = 0;
717
    }
718

  
709 719
    if (!isset($string->format)) {
710 720
      $string->format = '';
711 721
    }

Formats disponibles : Unified diff