Skip to content

Commit

Permalink
Merge pull request #64 from stevenjoezhang/patch-1
Browse files Browse the repository at this point in the history
修复gravatar头像错误
  • Loading branch information
kenvix committed Nov 10, 2018
2 parents d8d8895 + 05140c5 commit c4ab393
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/sfc.functions.php
Expand Up @@ -107,12 +107,12 @@ function gravatar($email, $s = 140, $d = 'mm', $g = 'g', $site = 'secure') {
* http://en.gravatar.com/site/implement/images/
* @return bool|string
*/
function getGravatar($s = 140, $d = 'mm', $g = 'g', $site = 'moefont') {
function getGravatar($s = 140, $d = 'mm', $g = 'g', $site = 'secure') {
if(option::uget('face_img') == 1) {
if(option::uget('face_url') != ''){
return option::uget('face_url');
} else {
return 'http://tb.himg.baidu.com/sys/portrait/item/';
return '//tb.himg.baidu.com/sys/portrait/item/';
}
} else {
return gravatar(EMAIL, $s, $d, $g, $site);
Expand Down

0 comments on commit c4ab393

Please sign in to comment.