mirror of
https://github.com/friendica/friendica
synced 2025-04-25 19:10:11 +00:00
Replace deprecated defaults() calls by ?? and ?: operators in src/Module/
This commit is contained in:
parent
8998926e5b
commit
f59ea2af55
40 changed files with 115 additions and 94 deletions
|
@ -36,7 +36,7 @@ class Index extends BaseAdminModule
|
|||
break;
|
||||
|
||||
case 'toggle' :
|
||||
$theme = defaults($_GET, 'addon', '');
|
||||
$theme = $_GET['addon'] ?? '';
|
||||
if ($theme) {
|
||||
$theme = Strings::sanitizeFilePathItem($theme);
|
||||
if (!is_dir("view/theme/$theme")) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue