mirror of
https://github.com/unraid/webgui.git
synced 2026-04-24 11:19:25 -05:00
improve: helper autov(), fail stynax error prevent
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user