mirror of
https://github.com/friendica/friendica
synced 2025-04-23 20:30:10 +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
|
@ -17,9 +17,9 @@ class ThemeDetails extends BaseModule
|
|||
$info = Theme::getInfo($theme);
|
||||
|
||||
// Unfortunately there will be no translation for this string
|
||||
$description = defaults($info, 'description', '');
|
||||
$version = defaults($info, 'version' , '');
|
||||
$credits = defaults($info, 'credits' , '');
|
||||
$description = $info['description'] ?? '';
|
||||
$version = $info['version'] ?? '';
|
||||
$credits = $info['credits'] ?? '';
|
||||
|
||||
echo json_encode([
|
||||
'img' => Theme::getScreenshot($theme),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue