StaticController: fix gravatar sample img header
This commit is contained in:
parent
8733238a6e
commit
af97db31d7
|
@ -30,8 +30,8 @@ class StaticController extends ActionController
|
|||
|
||||
public function gravatarAction()
|
||||
{
|
||||
header('Content-Type: image/jpg');
|
||||
$img = file_get_contents('http://www.gravatar.com/avatar/' . md5(strtolower(trim($this->_request->getParam('email')))) . '?s=200&d=mm');
|
||||
header('image/jpeg');
|
||||
echo $img;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue