auto-orient uploaded wall photos and profile photos also

This commit is contained in:
Zach Prezkuta 2012-07-08 09:18:05 -06:00
commit 9fbe921051
4 changed files with 16 additions and 3 deletions

View file

@ -740,8 +740,7 @@ function photos_post(&$a) {
killme();
}
if($ph->getType() != 'image/png')
$ph->orient($src);
$ph->orient($src);
@unlink($src);
$max_length = get_config('system','max_image_length');