X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/exercices/bilan.php?a=blobdiff_plain;f=includes%2FMediaWiki.php;h=b3abe7cfca2f4dc511d55c7149365d693018339b;hb=62d8fc872b6cfa20f57816e0a30379d4f5bd3b36;hp=150c72f8040fe3c8c54e7e1010b7bc81f2919d3a;hpb=9bf44d08f938cc9a85dc647b8a00665d5bd01fb6;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/MediaWiki.php b/includes/MediaWiki.php index 150c72f804..b3abe7cfca 100644 --- a/includes/MediaWiki.php +++ b/includes/MediaWiki.php @@ -548,6 +548,9 @@ class MediaWiki { } } + MWExceptionHandler::handleException( $e ); + } catch ( Error $e ) { + // Type errors and such: at least handle it now and clean up the LBFactory state MWExceptionHandler::handleException( $e ); } @@ -858,7 +861,7 @@ class MediaWiki { $this->performRequest(); // GUI-ify and stash the page output in MediaWiki::doPreOutputCommit() while - // ChronologyProtector synchronizes DB positions or slaves accross all datacenters. + // ChronologyProtector synchronizes DB positions or replicas accross all datacenters. $buffer = null; $outputWork = function () use ( $output, &$buffer ) { if ( $buffer === null ) { @@ -1028,7 +1031,7 @@ class MediaWiki { $port = $info['port']; } - MediaWiki\suppressWarnings(); + Wikimedia\suppressWarnings(); $sock = $host ? fsockopen( $host, $port, @@ -1037,7 +1040,7 @@ class MediaWiki { // If it takes more than 100ms to connect to ourselves there is a problem... 0.100 ) : false; - MediaWiki\restoreWarnings(); + Wikimedia\restoreWarnings(); $invokedWithSuccess = true; if ( $sock ) {