]> git.mxchange.org Git - friendica.git/blobdiff - mod/fbrowser.php
Discover directory type
[friendica.git] / mod / fbrowser.php
index f2bccb085a6f0d4d93c9a981728d94698b1727cd..b6df3304d477bab75408272fd60eee1b12f2c049 100644 (file)
@@ -10,7 +10,7 @@ use Friendica\Core\L10n;
 use Friendica\Core\Renderer;
 use Friendica\Core\System;
 use Friendica\Database\DBA;
-use Friendica\Object\Image;
+use Friendica\Util\Images;
 use Friendica\Util\Strings;
 
 /**
@@ -29,7 +29,7 @@ function fbrowser_content(App $a)
        }
 
        // Needed to match the correct template in a module that uses a different theme than the user/site/default
-       $theme = Strings::sanitizeFilePathItem(defaults($_GET, 'theme', null));
+       $theme = Strings::sanitizeFilePathItem($_GET['theme'] ?? null);
        if ($theme && is_file("view/theme/$theme/config.php")) {
                $a->setCurrentTheme($theme);
        }
@@ -79,7 +79,7 @@ function fbrowser_content(App $a)
                        function _map_files1($rr)
                        {
                                $a = \get_app();
-                               $types = Image::supportedTypes();
+                               $types = Images::supportedTypes();
                                $ext = $types[$rr['type']];
                                $filename_e = $rr['filename'];