]> git.mxchange.org Git - friendica.git/blobdiff - mod/profile_photo.php
Move Config::get() to DI::config()->get()
[friendica.git] / mod / profile_photo.php
index 47c058b6eaf16f8c3a7b9645f8cdec1e49a10d03..e87e44e05bb2489056a43444f1e297d090475db7 100644 (file)
@@ -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;
        }