Merge pull request #19167 from nextcloud/fix/tests/18745

Fix tests after #18745
This commit is contained in:
Roeland Jago Douma 2020-01-27 20:49:27 +01:00 committed by GitHub
commit 35502b8892
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -133,7 +133,7 @@ abstract class Avatar implements IAvatar {
$bgRGB = $this->avatarBackgroundColor($userDisplayName);
$bgHEX = sprintf("%02x%02x%02x", $bgRGB->r, $bgRGB->g, $bgRGB->b);
$text = $this->getAvatarText();
$toReplace = ['{size}', '{fill}', '{text}'];
$toReplace = ['{size}', '{fill}', '{letter}'];
return str_replace($toReplace, [$size, $bgHEX, $text], $this->svgTemplate);
}