X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fprofile_photo.php;h=e87e44e05bb2489056a43444f1e297d090475db7;hb=6c36fd9e01510a14fea9de766b4afe6760912a2e;hp=47c058b6eaf16f8c3a7b9645f8cdec1e49a10d03;hpb=5d294e8be8da11bff43cc78d2aa207d75bd76df9;p=friendica.git diff --git a/mod/profile_photo.php b/mod/profile_photo.php index 47c058b6ea..e87e44e05b 100644 --- a/mod/profile_photo.php +++ b/mod/profile_photo.php @@ -123,7 +123,7 @@ function profile_photo_post(App $a) info(DI::l10n()->t('Shift-reload the page or clear browser cache if the new photo does not display immediately.') . EOL); // Update global directory in background - if ($path && strlen(Config::get('system', 'directory'))) { + if ($path && strlen(DI::config()->get('system', 'directory'))) { Worker::add(PRIORITY_LOW, "Directory", DI::baseUrl()->get() . '/' . $path); } @@ -145,7 +145,7 @@ function profile_photo_post(App $a) $filetype = Image::guessType($filename); } - $maximagesize = Config::get('system', 'maximagesize'); + $maximagesize = DI::config()->get('system', 'maximagesize'); if (($maximagesize) && ($filesize > $maximagesize)) { notice(DI::l10n()->t('Image exceeds size limit of %s', Strings::formatBytes($maximagesize)) . EOL); @@ -217,7 +217,7 @@ function profile_photo_content(App $a) // Update global directory in background $url = $_SESSION['my_url']; - if ($url && strlen(Config::get('system', 'directory'))) { + if ($url && strlen(DI::config()->get('system', 'directory'))) { Worker::add(PRIORITY_LOW, "Directory", $url); } @@ -271,7 +271,7 @@ function profile_photo_content(App $a) function profile_photo_crop_ui_head(Image $image) { - $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; }