Skip to content

Commit

Permalink
Merge pull request #7 from Plasma-Platform/tmone-183_fix-screenshots-…
Browse files Browse the repository at this point in the history
…date

fix date for screenhots at setScreenShotsList method
  • Loading branch information
bumblebeeTM authored May 8, 2020
2 parents 10710c2 + 2e56c60 commit 3b0291e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/API2Client/Setters/TemplateFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ private function setScreenShotsList (Template $template, $data)
{
$screen = new Template\ScreenShot ();

$screen->setFilemtime ($this->createDateFromString ($this->getValue ('filemtime', $data, ''), 'Y-m-d H:i:s'), new \DateTime());
$screen->setFilemtime ($this->createDateFromString ($this->getValue ('filemtime', $screenshots_list, ''), 'Y-m-d H:i:s'), new \DateTime());
$screen->setUrl ($this->getValue ('uri', $screenshots_list, ''));
$screen->setMainPreview ($this->getValue ('main_preview', $screenshots_list, null) !== null);
$screen->setSmallPreview ($this->getValue ('small_preview', $screenshots_list, null) !== null);
Expand Down

0 comments on commit 3b0291e

Please sign in to comment.