2023-02-25 更新 1661 阅读 
   温馨提示: 
  本文最后更新于2023年02月25日,已超过982天没有更新,若内容或图片失效,请留言反馈。 
 Typecho默认使用的是Gravata头像,但是Gravatar大多数的链接在国内都被墙了,图片无法加载出来,这里记录一下通过修改程序源码来替换Gravatar头像地址为国内头像源地址。
解决方法如下:
打开下面这个文件
var/Typecho/Common.php搜索查找如下代码,在文件中的第836行。
$url = $isSecure ? 'https://secure.gravatar.com' : 'http://www.gravatar.com';替换成下面的代码即可解决问题。
$url = $isSecure ? 'https://cravatar.cn' : 'https://cravatar.cn/avatar/';
Warning: Undefined array key "HTTP_ACCEPT_LANGUAGE" in /www/wwwroot/zimoou.com/usr/themes/Feng/comments.php on line 5
Deprecated: stripos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /www/wwwroot/zimoou.com/usr/themes/Feng/comments.php on line 5
评论已关闭