Projet

Général

Profil

Révision d7c661a9

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

Weekly update of contrib modules

Voir les différences:

drupal7/sites/all/modules/file_entity/file_entity.file.inc
287 287
    if (!empty($alt)) {
288 288
      $output = token_replace($alt, array('file' => $file), $replace_options);
289 289

  
290
      // @todo Remove once https://www.drupal.org/node/1713164 is fixed.
291
      // There is currently no way to get the raw alt text returned from the
292
      // token so we revert the encoding done during tokenization.
293
      $file->alt = decode_entities($output);
290
      if (!empty($output)) {
291
        // @todo Remove once https://www.drupal.org/node/1713164 is fixed.
292
        // There is currently no way to get the raw alt text returned from the
293
        // token so we revert the encoding done during tokenization.
294
        $file->alt = decode_entities($output);
295
      }
294 296
    }
295 297
    if (!empty($title)) {
296 298
      $output = token_replace($title, array('file' => $file), $replace_options);
297 299

  
298
      // @todo Remove once https://www.drupal.org/node/1713164 is fixed.
299
      // There is currently no way to get the raw title text returned from the
300
      // token so we revert the encoding done during tokenization.
301
      $file->title = decode_entities($output);
300
      if (!empty($output)) {
301
        // @todo Remove once https://www.drupal.org/node/1713164 is fixed.
302
        // There is currently no way to get the raw title text returned from the
303
        // token so we revert the encoding done during tokenization.
304
        $file->title = decode_entities($output);
305
      }
302 306
    }
303 307
  }
304 308
}

Formats disponibles : Unified diff