]> git.mxchange.org Git - friendica.git/blobdiff - mod/photo.php
Use short form array syntax everywhere
[friendica.git] / mod / photo.php
index dc7d8567833086377dfa4dce5bcc390e58850ec7..e899d671d64e3691e3ac2f806cb0a6d5e8ae7b36 100644 (file)
@@ -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);