mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-03 04:29:28 +01:00
Fix cache control not being set for lavatar
This commit is contained in:
parent
022932d074
commit
941beda159
@ -2616,14 +2616,12 @@ class Contacts extends Contacts\Storage
|
|||||||
if (is_array($contact))
|
if (is_array($contact))
|
||||||
{
|
{
|
||||||
header('Content-type: image/jpeg');
|
header('Content-type: image/jpeg');
|
||||||
echo \EGroupware\Api\avatar::lavatar(array(
|
$contact['jpegphoto'] = \EGroupware\Api\avatar::lavatar(array(
|
||||||
'id' => $contact['id'],
|
'id' => $contact['id'],
|
||||||
'firstname' => $contact['n_given'],
|
'firstname' => $contact['n_given'],
|
||||||
'lastname' => $contact['n_family'])
|
'lastname' => $contact['n_family'])
|
||||||
);
|
);
|
||||||
exit();
|
|
||||||
}
|
}
|
||||||
Egw::redirect(\EGroupware\Api\Image::find('addressbook','photo'));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// use an etag over the image mapp
|
// use an etag over the image mapp
|
||||||
@ -2655,5 +2653,6 @@ class Contacts extends Contacts\Storage
|
|||||||
}
|
}
|
||||||
exit();
|
exit();
|
||||||
}
|
}
|
||||||
|
Egw::redirect(\EGroupware\Api\Image::find('addressbook','photo'));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user