mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-29 16:54:04 +02:00
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()
|
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');
|
$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;
|
echo $img;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user