Skip to content

Commit

Permalink
Fixed #44 image size import for news and events
Browse files Browse the repository at this point in the history
  • Loading branch information
ausi committed Mar 14, 2018
1 parent 5af7e32 commit f4abd4b
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/MadeYourDay/Contao/Module/Slider.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,15 @@ public function generate()
return $template->parse();
}

if (
$this->rsts_import_settings
&& $this->rsts_import_settings_from
&& ($settingsModule = \ModuleModel::findByPk($this->rsts_import_settings_from))
) {
$this->objModel->imgSize = $settingsModule->imgSize;
$this->objModel->fullsize = $settingsModule->fullsize;
}

if ($this->rsts_content_type === 'rsts_news') {
$newsModule = new SliderNews($this->objModel, $this->strColumn);
$this->newsArticles = $newsModule->getNewsArticles();
Expand Down

0 comments on commit f4abd4b

Please sign in to comment.