mirror of
https://github.com/ONLYOFFICE/document-server-integration.git
synced 2026-04-07 14:06:11 +08:00
php: added work with onlyoffice-docs-formats.json
This commit is contained in:
@ -71,7 +71,7 @@ final class DocEditorView extends View
|
||||
$docKey = getDocEditorKey($filename);
|
||||
$filetype = mb_strtolower(pathinfo($filename, PATHINFO_EXTENSION));
|
||||
|
||||
$ext = mb_strtolower('.' . pathinfo($filename, PATHINFO_EXTENSION));
|
||||
$ext = mb_strtolower(pathinfo($filename, PATHINFO_EXTENSION));
|
||||
$editorsMode = empty($request["action"]) ? "edit" : $request["action"]; // get the editors mode
|
||||
$canEdit = in_array($ext, $confgManager->getEditExtensions()); // check if the file can be edited
|
||||
if ((!$canEdit && $editorsMode == "edit"
|
||||
|
||||
Reference in New Issue
Block a user