Don't show warning if the file is missing
authorTim Starling <tstarling@users.mediawiki.org>
Wed, 15 Aug 2007 10:50:59 +0000 (10:50 +0000)
committerTim Starling <tstarling@users.mediawiki.org>
Wed, 15 Aug 2007 10:50:59 +0000 (10:50 +0000)
includes/DjVuImage.php

index 1e42356..b48aaff 100644 (file)
@@ -104,7 +104,9 @@ class DjVuImage {
        }
        
        function getInfo() {
+               wfSuppressWarnings();
                $file = fopen( $this->mFilename, 'rb' );
+               wfRestoreWarnings();
                if( $file === false ) {
                        wfDebug( __METHOD__ . ": missing or failed file read\n" );
                        return false;