mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-06-07 18:04:26 +02:00
[various] Replace deprecated defaults() calls by ?? operator
This commit is contained in:
parent
ce7b5ff6ac
commit
acdd62da3e
12 changed files with 27 additions and 26 deletions
|
@ -337,7 +337,7 @@ class qqFileUploader {
|
|||
if (!isset($pathinfo['extension'])) {
|
||||
Logger::warning('extension isn\'t set.', ['filename' => $filename]);
|
||||
}
|
||||
$ext = defaults($pathinfo, 'extension', '');
|
||||
$ext = $pathinfo['extension'] ?? '';
|
||||
|
||||
if($this->allowedExtensions && !in_array(strtolower($ext), $this->allowedExtensions)){
|
||||
$these = implode(', ', $this->allowedExtensions);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue