Commit 9c13a811 authored by Jonathan Smith's avatar Jonathan Smith Committed by Jonathan Smith
Browse files

Issue #3079645 by jonathan1055: Remove t( ) from exception message

parent be7ba608
Loading
Loading
Loading
Loading
+2 −7
Changes for scheduler.module: 2 added lines, 7 removed lines.
Original line number Diff line number Diff line
@@ -642,14 +642,9 @@ function scheduler_feeds_set_target($source, $entity, $target, $value, $mapping)
  // then strtotime() must not be used, otherwise it returns the current time.
  if (!empty($value) && !is_numeric($value)) {
    if (!$timestamp = strtotime($value)) {
      throw new FeedsValidationException(
      // Throw an exception if the date format was not recognized.
        t('Value %value for @source could not be converted to a valid %target date.', [
          '@source' => $mapping['source'],
          '%value' => $value,
          '%target' => $target,
        ])
      );
      $mapping_source = $mapping['source'];
      throw new FeedsValidationException("Value '$value' for '$mapping_source' could not be converted to a valid '$target' date.");
    }
  }
  else {