Projet

Général

Profil

Révision ca0757b9

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

Weekly update of contrib modules

Voir les différences:

drupal7/sites/all/modules/file_entity/file_entity.theme.inc
58 58
    $variables['text'] = t('Download [file:name]');
59 59
  }
60 60

  
61
  // Peform unsanitized token replacement if $uri['options']['html'] is empty
61
  // Perform unsanitized token replacement if $uri['options']['html'] is empty
62 62
  // since then l() will escape the link text.
63
  $variables['text'] = token_replace($variables['text'], array('file' => $file), array('clear' => TRUE, 'sanitize' => empty($uri['options']['html'])));
63
  $variables['text'] = token_replace($variables['text'], array('file' => $file), array('clear' => TRUE, 'sanitize' => !empty($uri['options']['html'])));
64 64

  
65 65
  $output = '<span class="file">' . $icon . ' ' . l($variables['text'], $uri['path'], $uri['options']);
66 66
  $output .= ' ' . '<span class="file-size">(' . format_size($file->filesize) . ')</span>';
......
142 142
  if ($variables['muted']) {
143 143
    $video_attributes['muted'] = 'muted';
144 144
  }
145
  if ($variables['width'] && $variables['height']) {
145
  if ($variables['width']) {
146 146
    $video_attributes['width'] = $variables['width'];
147
  }
148
  if ($variables['height']) {
147 149
    $video_attributes['height'] = $variables['height'];
148 150
  }
149 151

  

Formats disponibles : Unified diff