Fix fix for 8652 (failures with bad XML metadata for DjVu files)
authorBrion Vibber <brion@users.mediawiki.org>
Fri, 26 Jan 2007 12:00:04 +0000 (12:00 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Fri, 26 Jan 2007 12:00:04 +0000 (12:00 +0000)
commit455e77d168c6934b7919e14dc6c38e2961f6bd02
treeb595b60ad1351deeb5b07751170423dcd63815b0
parent24fcd6a140223fad1d0eccfeb46bae1b312bb218
Fix fix for 8652 (failures with bad XML metadata for DjVu files)
The mid-level functions in Image now fail gracefully on bogus data, as happens when the djvutoxml executable is missing.

Removed the bogus exception check in ImagePage high-level code (which actually just causes a fatal error by calling a nonexistent method :)

Also changed Image::initializeMultiPageXML to do clean lazy loading as Image::load does, and to return true/false as to success/failure for cleaner code using it.
includes/Image.php
includes/ImagePage.php