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.module
403 403
  $index = is_array($key) ? implode(':', $key) : $key;
404 404
  if (!isset($cache[$type][$index])) {
405 405
    $class = i18n_object_info($type, 'class', 'i18n_object_wrapper');
406
    $cache[$type][$index] = new $class($type, $key, $object);
406
    $object_wrapper = new $class($type, $key, $object);
407
    // Do not cache object with empty index.
408
    if (!empty($index)) {
409
      $cache[$type][$index] = $object_wrapper;
410
    }
411
  }
412
  else {
413
    $object_wrapper = $cache[$type][$index];
407 414
  }
408
  return $cache[$type][$index];
415

  
416
  return $object_wrapper;
409 417
}
410 418

  
411 419
/**

Formats disponibles : Unified diff