Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
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
......@@ -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);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment