php: fix embedded

This commit is contained in:
Oleg Sinizin
2021-11-02 16:12:51 +03:00
parent ec65ebbfb8
commit b3c02a5afd
2 changed files with 3 additions and 2 deletions

View File

@ -52,7 +52,7 @@
}
$fileuri = FileUri($filename, true);
$fileuriUser = FileUri($filename);
$fileuriUser = realpath($GLOBALS['STORAGE_PATH']) === $GLOBALS['STORAGE_PATH'] ? getDownloadUrl($filename) . "&dmode=emb" : FileUri($filename);
$docKey = getDocEditorKey($filename);
$filetype = strtolower(pathinfo($filename, PATHINFO_EXTENSION));