Replace remaining reference to Model\Photo::stripExtension
This commit is contained in:
parent
cd9caec06b
commit
c1ab3801ba
1 changed files with 1 additions and 1 deletions
|
@ -99,7 +99,7 @@ class Photo extends BaseModule
|
||||||
|
|
||||||
$photo = self::getAvatar($uid, $parameters['type'], $customsize ?: Proxy::PIXEL_SMALL);
|
$photo = self::getAvatar($uid, $parameters['type'], $customsize ?: Proxy::PIXEL_SMALL);
|
||||||
} else {
|
} else {
|
||||||
$photoid = MPhoto::stripExtension($parameters['name']);
|
$photoid = pathinfo($parameters['name'], PATHINFO_FILENAME);
|
||||||
$scale = 0;
|
$scale = 0;
|
||||||
if (substr($photoid, -2, 1) == "-") {
|
if (substr($photoid, -2, 1) == "-") {
|
||||||
$scale = intval(substr($photoid, -1, 1));
|
$scale = intval(substr($photoid, -1, 1));
|
||||||
|
|
Loading…
Reference in a new issue