Skip to content
Snippets Groups Projects

3229633: Changes in composer and info

Files
7
+ 2
1
@@ -8,6 +8,7 @@ use Drupal\Core\Config\ConfigFactoryInterface;
use Drupal\Core\Extension\ModuleHandlerInterface;
use Drupal\Core\PrivateKey;
use Drupal\Core\Site\Settings;
use Drupal\Core\StreamWrapper\StreamWrapperManager;
/**
* Class FileVersion.
@@ -99,7 +100,7 @@ class FileVersion implements FileVersionInterface {
* TRUE if is the uri is an image style uri, FALSE in otherwise.
*/
private function isImageStyleUri($uri) {
$target = file_uri_target($uri);
$target = StreamWrapperManager::getTarget($uri);
if ($target) {
$prefixes_pattern = preg_quote(static::IMAGE_STYLE_URI_TARGET_PREFIX, '/');
$pattern = '/^' . $prefixes_pattern . '/';
Loading