]> git.mxchange.org Git - friendica.git/commitdiff
Replace remaining reference to Model\Photo::stripExtension
authorHypolite Petovan <hypolite@mrpetovan.com>
Sun, 3 Oct 2021 09:52:53 +0000 (05:52 -0400)
committerHypolite Petovan <hypolite@mrpetovan.com>
Sun, 3 Oct 2021 09:52:53 +0000 (05:52 -0400)
src/Module/Photo.php

index 32403a5d1a8dc133cdb1f11769be4b5f7328a10d..806ad449c5691feaff64f4e272a1e9e55b84e4f0 100644 (file)
@@ -99,7 +99,7 @@ class Photo extends BaseModule
 
                        $photo = self::getAvatar($uid, $parameters['type'], $customsize ?: Proxy::PIXEL_SMALL);
                } else {
-                       $photoid = MPhoto::stripExtension($parameters['name']);
+                       $photoid = pathinfo($parameters['name'], PATHINFO_FILENAME);
                        $scale = 0;
                        if (substr($photoid, -2, 1) == "-") {
                                $scale = intval(substr($photoid, -1, 1));