Skip to content
This repository was archived by the owner on Oct 23, 2019. It is now read-only.

Commit 275dabd

Browse files
committed
Remove http: from gravatar references
1 parent 7266199 commit 275dabd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Softlabs/Util/Util.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@ public function avatar($email = null, $size = null)
1818

1919
// Return the default avatar if no email was provided.
2020
if (is_null($email) or empty($email)) {
21-
return "http://www.gravatar.com/avatar/00000000000000000000000000000000?d=mm&s=$size";
21+
return "//www.gravatar.com/avatar/00000000000000000000000000000000?d=mm&s=$size";
2222
}
2323

2424
$md5Email = md5(strtolower(trim($email)));
2525

26-
return "http://www.gravatar.com/avatar/$md5Email?d=mm&s=$size";
26+
return "//www.gravatar.com/avatar/$md5Email?d=mm&s=$size";
2727
}
2828

2929
/**
@@ -69,7 +69,7 @@ public function fillOutArray($array, $objective, $times = 5)
6969
public function gravatar($email=null)
7070
{
7171
if(isset($email)) {
72-
return 'http://www.gravatar.com/'.md5(strtolower(trim($email)));
72+
return '//www.gravatar.com/'.md5(strtolower(trim($email)));
7373
}
7474

7575
return 'https://en.gravatar.com/site/signup';

0 commit comments

Comments
 (0)