Skip to content
Snippets Groups Projects
Commit 1e5a1111 authored by Yahya Al Hamad's avatar Yahya Al Hamad
Browse files

Revert "Issue #3329531 by Project Update Bot: Automated Drupal 10 compatibility fixes"

This reverts commit 19110f73.
parent 19110f73
No related branches found
No related tags found
No related merge requests found
......@@ -17,8 +17,8 @@
}
],
"require": {
"drupal/webp": "^1.0",
"drupal/core": "^9.3 || ^10"
"drupal/core": "^8.8 || ^9",
"drupal/webp": "^1.0"
},
"support": {
"issues": "https://www.drupal.org/project/issues/webp_extras",
......
......@@ -89,7 +89,7 @@ class WebpImage extends FilterBase implements ContainerFactoryPluginInterface {
/** @var \DOMElement $result */
$rel_path = str_replace('/sites/default/files/', '', $result->getAttribute('src'));
$file_uri = \Drupal::service('stream_wrapper_manager')->normalizeUri(\Drupal::config('system.file')->get('default_scheme') . ('://' . $rel_path));
$file_uri = file_build_uri($rel_path);
// Remove query arguments.
$uri = preg_match('/^.*(?:\.)[a-zA-Z]+/m', $file_uri, $matches) ? $matches[0] : $file_uri;
$uri = urldecode($uri);
......
name: WebP Extra
type: module
description: "Extra functionalities for the WebP module. Provides a filter to convert images to webp images."
core_version_requirement: ^9.3 || ^10
core_version_requirement: ^8.8 || ^9
dependencies:
- drupal:webp
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment