1
0
Fork 0

Merge pull request #10808 from MrPetovan/task/10725-user-avatar

Replace remaining reference to Model\Photo::stripExtension
This commit is contained in:
Michael Vogel 2021-10-03 11:57:59 +02:00 committed by GitHub
commit 96b41fdb67
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View 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));