image/jpeg > image/png
This commit is contained in:
parent
0fd55707f5
commit
a17eae941b
@ -623,7 +623,7 @@ function import_profile_photo($photo,$xchan,$thing = false) {
|
|||||||
$photo = $a->get_baseurl() . '/' . get_default_profile_photo();
|
$photo = $a->get_baseurl() . '/' . get_default_profile_photo();
|
||||||
$thumb = $a->get_baseurl() . '/' . get_default_profile_photo(80);
|
$thumb = $a->get_baseurl() . '/' . get_default_profile_photo(80);
|
||||||
$micro = $a->get_baseurl() . '/' . get_default_profile_photo(48);
|
$micro = $a->get_baseurl() . '/' . get_default_profile_photo(48);
|
||||||
$type = 'image/jpeg';
|
$type = 'image/png';
|
||||||
}
|
}
|
||||||
|
|
||||||
return(array($photo,$thumb,$micro,$type,$photo_failure));
|
return(array($photo,$thumb,$micro,$type,$photo_failure));
|
||||||
|
@ -71,7 +71,7 @@ function photo_init(&$a) {
|
|||||||
}
|
}
|
||||||
if(! isset($data)) {
|
if(! isset($data)) {
|
||||||
$data = file_get_contents($default);
|
$data = file_get_contents($default);
|
||||||
$mimetype = 'image/jpeg';
|
$mimetype = 'image/png';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
@ -176,15 +176,15 @@ function photo_init(&$a) {
|
|||||||
|
|
||||||
case 4:
|
case 4:
|
||||||
$data = file_get_contents(get_default_profile_photo());
|
$data = file_get_contents(get_default_profile_photo());
|
||||||
$mimetype = 'image/jpeg';
|
$mimetype = 'image/png';
|
||||||
break;
|
break;
|
||||||
case 5:
|
case 5:
|
||||||
$data = file_get_contents(get_default_profile_photo(80));
|
$data = file_get_contents(get_default_profile_photo(80));
|
||||||
$mimetype = 'image/jpeg';
|
$mimetype = 'image/png';
|
||||||
break;
|
break;
|
||||||
case 6:
|
case 6:
|
||||||
$data = file_get_contents(get_default_profile_photo(48));
|
$data = file_get_contents(get_default_profile_photo(48));
|
||||||
$mimetype = 'image/jpeg';
|
$mimetype = 'image/png';
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
killme();
|
killme();
|
||||||
|
Reference in New Issue
Block a user