X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fwall_upload.php;h=fd33cdd17af813ce4b8f5b28172ae56df4dee3ee;hb=4683cfee123904032cebc5b6d6719c8c712caa24;hp=814a32fd468c52d208125b2ab7b40c075737cd33;hpb=5dfee31108fc92a7abca5f99b8fdf1b34aec5dd5;p=friendica.git diff --git a/mod/wall_upload.php b/mod/wall_upload.php index 814a32fd46..fd33cdd17a 100644 --- a/mod/wall_upload.php +++ b/mod/wall_upload.php @@ -1,16 +1,31 @@ . + * * Module for uploading a picture to the profile wall * * By default the picture will be stored in the photo album with the name Wall Photos. * You can specify a different album by adding an optional query string "album=" * to the url + * */ use Friendica\App; -use Friendica\Core\Config; -use Friendica\Core\L10n; use Friendica\Core\Logger; use Friendica\Core\Session; use Friendica\Database\DBA; @@ -180,7 +195,7 @@ function wall_upload_post(App $a, $desktopmode = true) Logger::log("File upload src: " . $src . " - filename: " . $filename . " - size: " . $filesize . " - type: " . $filetype, Logger::DEBUG); - $maximagesize = Config::get('system', 'maximagesize'); + $maximagesize = DI::config()->get('system', 'maximagesize'); if (($maximagesize) && ($filesize > $maximagesize)) { $msg = DI::l10n()->t('Image exceeds size limit of %s', Strings::formatBytes($maximagesize)); @@ -210,7 +225,7 @@ function wall_upload_post(App $a, $desktopmode = true) $Image->orient($src); @unlink($src); - $max_length = Config::get('system', 'max_image_length'); + $max_length = DI::config()->get('system', 'max_image_length'); if (!$max_length) { $max_length = MAX_IMAGE_LENGTH; }