]> git.mxchange.org Git - friendica.git/blobdiff - mod/fbrowser.php
Replace deprecated defaults() calls by a combination of ?? and ?: operators in mod/
[friendica.git] / mod / fbrowser.php
index f2bccb085a6f0d4d93c9a981728d94698b1727cd..102d0c613d1a9cfb22f2d862939e0bd7b624f016 100644 (file)
@@ -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);
        }