X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fphoto.php;h=e899d671d64e3691e3ac2f806cb0a6d5e8ae7b36;hb=9e700ba6ea548eba782e4304d22962ab5ca3b987;hp=dc7d8567833086377dfa4dce5bcc390e58850ec7;hpb=97bc54cf1bc5b98fa22b8455b60fd278068ae804;p=friendica.git diff --git a/mod/photo.php b/mod/photo.php index dc7d856783..e899d671d6 100644 --- a/mod/photo.php +++ b/mod/photo.php @@ -71,7 +71,7 @@ function photo_init(App $a) break; } - $uid = str_replace(array('.jpg', '.png', '.gif'), array('', '', ''), $person); + $uid = str_replace(['.jpg', '.png', '.gif'], ['', '', ''], $person); foreach (Image::supportedTypes() AS $m => $e) { $uid = str_replace('.' . $e, '', $uid); @@ -92,7 +92,7 @@ function photo_init(App $a) } else { // Other photos $resolution = 0; - $photo = str_replace(array('.jpg', '.png', '.gif'), array('', '', ''), $photo); + $photo = str_replace(['.jpg', '.png', '.gif'], ['', '', ''], $photo); foreach (Image::supportedTypes() AS $m => $e) { $photo = str_replace('.' . $e, '', $photo);