From 99dc95753610e0e5d1a871b47c8c9ab463eba2f0 Mon Sep 17 00:00:00 2001 From: Tim Starling Date: Wed, 15 Aug 2007 10:50:59 +0000 Subject: [PATCH] Don't show warning if the file is missing --- includes/DjVuImage.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/includes/DjVuImage.php b/includes/DjVuImage.php index 1e423565cd..b48aaffdc0 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; -- 2.20.1