mirror of
https://github.com/ONLYOFFICE/document-server-integration.git
synced 2026-04-07 14:06:11 +08:00
edit (fileType in setHistoryData for php)
This commit is contained in:
@ -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;
|
||||
|
||||
Reference in New Issue
Block a user