Replace remaining reference to Model\Photo::stripExtension

pull/10808/head
Hypolite Petovan 2021-10-03 05:52:53 -04:00
rodzic cd9caec06b
commit c1ab3801ba
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

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