]> git.mxchange.org Git - friendica.git/commitdiff
fix missing DI
authorJakob Schürz <jakob@schuerz.at>
Mon, 13 Mar 2023 16:38:10 +0000 (17:38 +0100)
committerJakobus Schürz <jakobus.schuerz@schuerz.at>
Sun, 19 Mar 2023 17:52:45 +0000 (18:52 +0100)
mod/photos.php
src/Module/Post/Edit.php

index a8b63d12dffd60649f4ee7e6c34b79508d6bee6b..440aae92ebf46e3bbd497f091abb39ff2657f6c0 100644 (file)
@@ -1141,9 +1141,7 @@ function photos_content(App $a)
                                                '$qcomment' => $qcomment,
                                                '$rand_num' => Crypto::randomDigits(12),
                                                // Dropzone
-                                               //'$max_imagesize'       => DI::config()->get('system', 'maximagesize'),
-                                               // don't know, if DI::config.. does not work here, so it is set to a manual value
-                                               '$max_imagesize' => 100000,
+                                               '$max_imagesize'       => DI::config()->get('system', 'maximagesize'),
                                        ]);
                                }
                        }
@@ -1200,9 +1198,7 @@ function photos_content(App $a)
                                                '$qcomment' => $qcomment,
                                                '$rand_num' => Crypto::randomDigits(12),
                                                // Dropzone
-                                               //'$max_imagesize'       => DI::config()->get('system', 'maximagesize'),
-                                               // don't know, if DI::config.. does not work here, so it is set to a manual value
-                                               '$max_imagesize' => 200000
+                                               '$max_imagesize'       => DI::config()->get('system', 'maximagesize'),
                                        ]);
                                }
 
@@ -1278,9 +1274,7 @@ function photos_content(App $a)
                                                        '$qcomment' => $qcomment,
                                                        '$rand_num' => Crypto::randomDigits(12),
                                                        // Dropzone
-                                                       //'$max_imagesize'       => DI::config()->get('system', 'maximagesize'),
-                                                       // don't know, if DI::config.. does not work here, so it is set to a manual value
-                                                       '$max_imagesize' => 300000
+                                                       '$max_imagesize'       => DI::config()->get('system', 'maximagesize'),
                                                ]);
                                        }
                                }
index 87a0c1b9c636996725d98056f1dd1f4ed61d53d9..6311deb18258c65cc5d477907402e1259e8264d4 100644 (file)
@@ -36,6 +36,7 @@ use Friendica\Navigation\SystemMessages;
 use Friendica\Network\HTTPException;
 use Friendica\Util\Crypto;
 use Friendica\Util\Profiler;
+use Friendica\DI;
 use Psr\Log\LoggerInterface;
 
 /**
@@ -183,10 +184,7 @@ 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'       => 500000,
-
+                       '$max_imagesize'       => DI::config()->get('system', 'maximagesize'),
                ]);
 
                return $output;