Skip to content

Commit

Permalink
Merge pull request #13 from alexplusde/ignore-filetime-stat-failed
Browse files Browse the repository at this point in the history
ignore `filemtime(): stat failed`
  • Loading branch information
alxndr-w authored Jul 31, 2022
2 parents b883549 + 833ef15 commit 3c357c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/speed_up_asset.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ class speed_up_asset {
public static function getUrl($file, $show_timestamp = true)
{
if ($show_timestamp) {
$timestamp = '?timestamp='.filemtime(rex_path::assets($file));
$timestamp = '?timestamp='.@filemtime(rex_path::assets($file));
}

return rex_url::assets($file) . $timestamp;
Expand Down

0 comments on commit 3c357c4

Please sign in to comment.