Replace deprecated defaults() calls by a combination of ?? and ?: operators in mod/
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user