Commit a8c70177 authored by Project Update Bot's avatar Project Update Bot Committed by Richard Eriksson
Browse files

Issue #3289090 by Project Update Bot, DishaKatariya: Automated Drupal 10 compatibility fixes

parent fbc3b957
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
name: Pirate filter
description: "Avast ye scurvy dogs!"
core: 8.x
type: module
package: 'Input filters'
configure: filter.admin_overview
core_version_requirement: ^8 || ^9
core_version_requirement: ^8 || ^9 || ^10
+1 −1
Original line number Diff line number Diff line
@@ -45,7 +45,7 @@ class Pirate extends FilterBase {
   */
  public function process($text, $langcode) {
    $pirate_override = \Drupal::config('pirate.override')->get('overriden');
    if (\Drupal::service('date.formatter')->format(REQUEST_TIME, 'custom', 'md') != '0919') {
    if (\Drupal::service('date.formatter')->format(\Drupal::time()->getRequestTime(), 'custom', 'md') != '0919') {
      if ($pirate_override == 0) {
        return new FilterProcessResult($text);
      }