Skip to content

Commit 3f36f93

Browse files
authored
Merge pull request #37 from SwimResults/fix/gravatar-api-change
Fix/gravatar api change
2 parents 572358f + d2d4d5c commit 3f36f93

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/php/content/blog/article.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ function printArticleForBlogList($post): void {
7070
echo('<img class="post-image" src="'.getImgSrc($post).'" alt="post '.$post["title"].'">');
7171
$author = BlogHelper::getAuthorInfo($post["author"]);
7272
if ($author) {
73-
echo('<h3 class="post-author">' . $author["name"]["formatted"] . '</h3>');
73+
echo('<h3 class="post-author">' . $author["displayName"] . '</h3>');
7474
}
7575
echo('<h1 class="post-title"><a href="article/'.$post["id"].'-'.getArticleAlias($post["title"]).'">'.$post["title"].'</a></h1>');
7676
echo('</div>');
@@ -83,10 +83,10 @@ function printArticleFullPage($post): void {
8383
$author = BlogHelper::getAuthorInfo($post["author"]);
8484
if ($author) {
8585
echo('<div class="author">');
86-
echo('<img src="'.$author["thumbnailUrl"].'" alt="author image for '.$author["name"]["formatted"].'" class="author-img">');
86+
echo('<img src="'.$author["thumbnailUrl"].'" alt="author image for '.$author["displayName"].'" class="author-img">');
8787
echo('<div class="post-info">');
8888
echo('<span class="author-name">');
89-
echo($author["name"]["formatted"]);
89+
echo($author["displayName"]);
9090
echo('</span><br>');
9191
echo('<span class="post-date">');
9292
echo('<span title="'.getDateTimeString(getPostPublishDate($post)).'">');
@@ -115,4 +115,4 @@ function printArticleFullPage($post): void {
115115
echo('<p class="post-author-info">'.T::t("CONTENT.BLOG.WRITTEN_BY").': <b>'.$author["name"]["formatted"].'</b></p>');
116116
echo('</div>');
117117
echo('</div>');
118-
}
118+
}

0 commit comments

Comments
 (0)