Fix tests after #18745
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
parent
8be4efb023
commit
55c17a3571
|
@ -133,7 +133,7 @@ abstract class Avatar implements IAvatar {
|
||||||
$bgRGB = $this->avatarBackgroundColor($userDisplayName);
|
$bgRGB = $this->avatarBackgroundColor($userDisplayName);
|
||||||
$bgHEX = sprintf("%02x%02x%02x", $bgRGB->r, $bgRGB->g, $bgRGB->b);
|
$bgHEX = sprintf("%02x%02x%02x", $bgRGB->r, $bgRGB->g, $bgRGB->b);
|
||||||
$text = $this->getAvatarText();
|
$text = $this->getAvatarText();
|
||||||
$toReplace = ['{size}', '{fill}', '{text}'];
|
$toReplace = ['{size}', '{fill}', '{letter}'];
|
||||||
return str_replace($toReplace, [$size, $bgHEX, $text], $this->svgTemplate);
|
return str_replace($toReplace, [$size, $bgHEX, $text], $this->svgTemplate);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue