stable

Clone or download

Read-only

refactor: Build config from OnlyOfficeDocument

Instead of starting from a DocmanFileLastVersion, I suggest to start from an OnlyOfficeDocument, we are already sure that the file can be open in OO. No functional changes. Part of story #27555: display Office documents stored in the Document plugin Change-Id: I60d4b446388c6b58a7f6b47aea932168ac9d2a29

Modified Files

Name
M plugins/onlyoffice/include/Download/OnlyOfficeDownloadDocumentTokenGenerator.php +2 −2 Go to diff View file
M plugins/onlyoffice/include/Download/OnlyOfficeDownloadDocumentTokenGeneratorDBStore.php +3 −3 Go to diff View file
M plugins/onlyoffice/include/Open/AllowedFileExtensions.php +1 −1 Go to diff View file
M plugins/onlyoffice/include/Open/Editor/OnlyOfficeDocumentConfigProvider.php +10 −22 Go to diff View file
M plugins/onlyoffice/include/Open/OnlyOfficeDocument.php +6 −2 Go to diff View file
M plugins/onlyoffice/include/Open/OnlyOfficeDocumentProvider.php +4 −1 Go to diff View file
M plugins/onlyoffice/include/onlyofficePlugin.php +4 −1 Go to diff View file
M plugins/onlyoffice/tests/unit/Download/OnlyOfficeDownloadDocumentTokenGeneratorDBStoreTest.php +3 −2 Go to diff View file
M plugins/onlyoffice/tests/unit/Open/Editor/OnlyOfficeDocumentConfigProviderTest.php +16 −19 Go to diff View file
M plugins/onlyoffice/tests/unit/Open/ProvideOnlyOfficeDocumentStub.php +1 −1 Go to diff View file