From: Tim Starling Date: Wed, 15 Aug 2007 10:50:59 +0000 (+0000) Subject: Don't show warning if the file is missing X-Git-Tag: 1.31.0-rc.0~51765 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/comptes/journal.php?a=commitdiff_plain;h=99dc95753610e0e5d1a871b47c8c9ab463eba2f0;p=lhc%2Fweb%2Fwiklou.git Don't show warning if the file is missing --- 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;