Skip to content
This repository has been archived by the owner on Apr 6, 2020. It is now read-only.

Commit

Permalink
Fix #88: Fix invalid path for getting filemtime in designer mode.
Browse files Browse the repository at this point in the history
  • Loading branch information
dmolineus committed Nov 18, 2016
1 parent 4a287db commit 37a925e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Bit3/Contao/ThemePlus/ThemePlus.php
Original file line number Diff line number Diff line change
Expand Up @@ -1372,7 +1372,7 @@ protected function addAssetsToCollectionFromArray(
$array[] = array(
'id' => $type . ':asset:' . spl_object_hash($source),
'name' => basename($sourcePath, '.' . $type) . '.' . $type,
'time' => filemtime($sourcePath),
'time' => filemtime($source->getSourceRoot() . '/' . $sourcePath),
'asset' => $source,
'position' => $defaultPosition
);
Expand Down

0 comments on commit 37a925e

Please sign in to comment.