improve: helper autov(), fail stynax error prevent

This commit is contained in:
Zack Spear
2020-12-16 19:40:37 -08:00
parent 529c6542d1
commit 70db0366f8
+2 -1
View File
@@ -231,7 +231,8 @@ function autov($file,$ret=false) {
global $docroot;
$path = $docroot.$file;
clearstatcache(true, $path);
$newFile = "$file?v=".filemtime($path);
$time = strlen(@filemtime($path)) ? @filemtime($path) : 'autov_fileDoesntExist';
$newFile = "$file?v=".$time;
if ($ret)
return $newFile;
else