HomePhabricator

Use getimagesizefromstring() instead of getimagesize()

Description

Use getimagesizefromstring() instead of getimagesize()

getimagesize() outputs warnings when the file does not exist
or when allow_url_fopen is disabled.
Now we use MWHttpRequest to retrieve the file instead
so we don't have a warning if the file can't be retrieved.

Bug: T153250
Change-Id: If1365924e52625a0c6346411faae300b2f83c25a

Details

Provenance
RudloffAuthored on Dec 15 2016, 1:57 AM
Parents
rEMFR14f28a15397c: Show the user icon on watchlist page
Branches
Unknown
Tags
Unknown
ChangeId
If1365924e52625a0c6346411faae300b2f83c25a