From: Hypolite Petovan Date: Sun, 3 Oct 2021 09:52:53 +0000 (-0400) Subject: Replace remaining reference to Model\Photo::stripExtension X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=c1ab3801ba0eb71f8c7454bfeeaa876fc3c1f63f;p=friendica.git Replace remaining reference to Model\Photo::stripExtension --- diff --git a/src/Module/Photo.php b/src/Module/Photo.php index 32403a5d1a..806ad449c5 100644 --- a/src/Module/Photo.php +++ b/src/Module/Photo.php @@ -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));