Projet

Général

Profil

Révision 4444412d

Ajouté par Julien Enselme il y a environ 10 ans

Update drupal 7.27 -> 7.28

Voir les différences:

drupal7/modules/system/image.gd.inc
56 56
 *   A boolean indicating if the GD toolkit is available on this machine.
57 57
 */
58 58
function image_gd_check_settings() {
59
  if ($check = get_extension_funcs('gd')) {
60
    if (in_array('imagegd2', $check)) {
61
      // GD2 support is available.
62
      return TRUE;
63
    }
64
  }
65
  return FALSE;
59
  // GD2 support is available.
60
  return function_exists('imagegd2');
66 61
}
67 62

  
68 63
/**
......
346 341
 */
347 342
function image_gd_get_info(stdClass $image) {
348 343
  $details = FALSE;
349
  $data = getimagesize($image->source);
344
  $data = @getimagesize($image->source);
350 345

  
351 346
  if (isset($data) && is_array($data)) {
352 347
    $extensions = array('1' => 'gif', '2' => 'jpg', '3' => 'png');

Formats disponibles : Unified diff