From d2d4d5c06c8027000b033a50c29ebdbab810e802 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Konrad=20Wei=C3=9F?= Date: Mon, 5 Aug 2024 10:48:11 +0200 Subject: [PATCH] fix names in different field of gravatar API --- src/php/content/blog/article.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/php/content/blog/article.php b/src/php/content/blog/article.php index f1c1326..c08305e 100644 --- a/src/php/content/blog/article.php +++ b/src/php/content/blog/article.php @@ -70,7 +70,7 @@ function printArticleForBlogList($post): void { echo('post '.$post['); $author = BlogHelper::getAuthorInfo($post["author"]); if ($author) { - echo('

' . $author["name"]["formatted"] . '

'); + echo('

' . $author["displayName"] . '

'); } echo('

'.$post["title"].'

'); echo(''); @@ -83,10 +83,10 @@ function printArticleFullPage($post): void { $author = BlogHelper::getAuthorInfo($post["author"]); if ($author) { echo('
'); - echo('author image for '.$author['); + echo('author image for '.$author['); echo(''); echo('
'); - } \ No newline at end of file + }