edit (fileType in setHistoryData for php)

This commit is contained in:
Andrey Yumatov
2021-12-10 17:49:09 +03:00
parent bc1c9f455c
commit c0d240728d

View File

@ -245,10 +245,10 @@
];
}
$fileExe = strtolower('.' . pathinfo($filename, PATHINFO_EXTENSION));
$fileExe = strtolower(pathinfo($filename, PATHINFO_EXTENSION));
$prevFileName = $verDir . DIRECTORY_SEPARATOR . "prev." . $filetype;
$prevFileName = substr($prevFileName, strlen(getStoragePath("")));
$dataObj["fileType"] = str_replace(".","",$fileExe);
$dataObj["fileType"] = $fileExe;
$dataObj["key"] = $key;
$dataObj["url"] = $i == $curVer ? $fileuri : getVirtualPath(true) . str_replace("%5C", "/", rawurlencode($prevFileName)); // write file url to the data object
$dataObj["version"] = $i;