Exchange "part" with "fragment"
This commit is contained in:
parent
3761e9ee51
commit
2ba4333f70
|
@ -263,11 +263,11 @@ class APContact
|
||||||
// When the photo is too large, try to shorten it by removing parts
|
// When the photo is too large, try to shorten it by removing parts
|
||||||
if (strlen($apcontact['photo']) > 255) {
|
if (strlen($apcontact['photo']) > 255) {
|
||||||
$parts = parse_url($apcontact['photo']);
|
$parts = parse_url($apcontact['photo']);
|
||||||
unset($parts['query']);
|
unset($parts['fragment']);
|
||||||
$apcontact['photo'] = Network::unparseURL($parts);
|
$apcontact['photo'] = Network::unparseURL($parts);
|
||||||
|
|
||||||
if (strlen($apcontact['photo']) > 255) {
|
if (strlen($apcontact['photo']) > 255) {
|
||||||
unset($parts['fragment']);
|
unset($parts['query']);
|
||||||
$apcontact['photo'] = Network::unparseURL($parts);
|
$apcontact['photo'] = Network::unparseURL($parts);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue