No need to call wfSuppressWarnings() and wfRestoreWarnings(); wfDl() already does...
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Mon, 11 Apr 2011 16:52:51 +0000 (16:52 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Mon, 11 Apr 2011 16:52:51 +0000 (16:52 +0000)
includes/diff/DifferenceEngine.php

index 205962a..4dabcd1 100644 (file)
@@ -697,16 +697,12 @@ CONTROL;
                global $wgExternalDiffEngine;
                if ( $wgExternalDiffEngine == 'wikidiff' && !function_exists( 'wikidiff_do_diff' ) ) {
                        wfProfileIn( __METHOD__ . '-php_wikidiff.so' );
-                       wfSuppressWarnings();
                        wfDl( 'php_wikidiff' );
-                       wfRestoreWarnings();
                        wfProfileOut( __METHOD__ . '-php_wikidiff.so' );
                }
                else if ( $wgExternalDiffEngine == 'wikidiff2' && !function_exists( 'wikidiff2_do_diff' ) ) {
                        wfProfileIn( __METHOD__ . '-php_wikidiff2.so' );
-                       wfSuppressWarnings();
                        wfDl( 'wikidiff2' );
-                       wfRestoreWarnings();
                        wfProfileOut( __METHOD__ . '-php_wikidiff2.so' );
                }
        }