From 3915335fec2ae740aec0bcd50500fc3f060a0e4a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakobus=20Sch=C3=BCrz?= Date: Mon, 13 Mar 2023 15:13:04 +0100 Subject: [PATCH] change from DI to this --- src/Content/Conversation.php | 6 ++---- src/Module/Post/Edit.php | 3 ++- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/Content/Conversation.php b/src/Content/Conversation.php index 586b0bc540..4b54c8d085 100644 --- a/src/Content/Conversation.php +++ b/src/Content/Conversation.php @@ -408,11 +408,9 @@ class Conversation '$compose_link_title' => $this->l10n->t('Open Compose page'), '$always_open_compose' => $this->pConfig->get($this->session->getLocalUserId(), 'frio', 'always_open_compose', false), + // Dropzone - //'$max_imagesize' => DI::config()->get('system', 'maximagesize'), - // DI::config.. does not work here, so it is set to a manual value - '$max_imagesize' => 600000, - + '$max_imagesize' => $this->config->get('system', 'maximagesize') ]); diff --git a/src/Module/Post/Edit.php b/src/Module/Post/Edit.php index 87a0c1b9c6..ad593bafb4 100644 --- a/src/Module/Post/Edit.php +++ b/src/Module/Post/Edit.php @@ -184,7 +184,8 @@ class Edit extends BaseModule '$compose_link_title' => $this->t('Open Compose page'), // Dropzone //'$max_imagesize' => DI::config()->get('system', 'maximagesize'), - // DI::config.. does not work here, so it is set to a manual value + //'$max_imagesize' => $this->config->get('system', 'maximagesize'), + // both is not workin here, so it is set to a manual value '$max_imagesize' => 500000, ]);