Fix getPageDimensions failure handling
authorBrian Wolff <bawolff+wn@gmail.com>
Tue, 16 Apr 2013 21:34:43 +0000 (18:34 -0300)
committerMatmaRex <matma.rex@gmail.com>
Wed, 26 Jun 2013 22:02:30 +0000 (00:02 +0200)
commitf8d0f0a7800606eea3d40b7091ae168ca2e34458
tree82425aa89c8c89cf8eb68ec4e0fa8dfc1550b931
parent94f26422ef97a30e602d99c083cd525dbbaa4f6a
Fix getPageDimensions failure handling

getPageDimensions returning false for failure wasn't being handled
properly, causing ugly output. The doc comment on that method was
wrong as well.

Most notably causing random whitespace output:
https://commons.wikimedia.org/wiki/?curid=22151015
(screenshot: http://i.imgur.com/c21EpVx.png).

Bug: 41281
Change-Id: I1a49474309e15808928f877dfc29ae366d028928
RELEASE-NOTES-1.22
includes/filerepo/file/LocalFile.php
includes/media/MediaHandler.php