summaryrefslogtreecommitdiff
path: root/includes/DjVuImage.php
diff options
context:
space:
mode:
Diffstat (limited to 'includes/DjVuImage.php')
-rw-r--r--includes/DjVuImage.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/includes/DjVuImage.php b/includes/DjVuImage.php
index 1e423565..b48aaffd 100644
--- a/includes/DjVuImage.php
+++ b/includes/DjVuImage.php
@@ -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;