Skip to content
Snippets Groups Projects
Commit 86d56f1b authored by Shibin Das's avatar Shibin Das
Browse files

Issue #3494773 by d34dman: fix missing url_generation_strategy error

parent 6de3ccc2
No related branches found
No related tags found
No related merge requests found
......@@ -202,7 +202,9 @@ class RiftPicture {
* The default configurations.
*/
protected function getDefaultConfig(): array {
return $this->configFactory->get('rift.settings')->get('config');
$config = $this->configFactory->get('rift.settings')->get('config');
$config['url_generation_strategy'] = $this->getDefaultSourcePluginId();
return $config;
}
/**
......@@ -260,13 +262,7 @@ class RiftPicture {
'#markup' => '<!-- Missing screens -->',
];
}
if (empty($this->pictureConfig->urlGenerationStrategy)) {
$this->setSourcePlugin($this->getDefaultSourcePluginId());
}
else {
$this->setSourcePlugin($this->pictureConfig->urlGenerationStrategy);
}
$this->setSourcePlugin($this->pictureConfig->urlGenerationStrategy);
$sources = $this->generatePictureSources($this->pictureConfig, $media);
if (empty($sources)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment