X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FMediaWiki.php;h=e6dc0fecd3079359480f7addf7f4d56c352f8438;hb=2330c9afaddb4379858297a9fc83d56ac40aeff3;hp=371f2cb4fbec477f9d3e9fde6aa8b2cb321dc3d7;hpb=232d76b2428278936d34a5e873e3b6e68bda7da1;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/MediaWiki.php b/includes/MediaWiki.php index 371f2cb4fb..e6dc0fecd3 100644 --- a/includes/MediaWiki.php +++ b/includes/MediaWiki.php @@ -758,7 +758,7 @@ class MediaWiki { $request = $this->context->getRequest(); // Send Ajax requests to the Ajax dispatcher. - if ( $this->config->get( 'UseAjax' ) && $request->getVal( 'action' ) === 'ajax' ) { + if ( $request->getVal( 'action' ) === 'ajax' ) { // Set a dummy title, because $wgTitle == null might break things $title = Title::makeTitle( NS_SPECIAL, 'Badtitle/performing an AJAX call in ' . __METHOD__ @@ -861,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 ) { @@ -998,8 +998,14 @@ class MediaWiki { * @param LoggerInterface $runJobsLogger */ private function triggerSyncJobs( $n, LoggerInterface $runJobsLogger ) { - $runner = new JobRunner( $runJobsLogger ); - $runner->run( [ 'maxJobs' => $n ] ); + $trxProfiler = Profiler::instance()->getTransactionProfiler(); + $old = $trxProfiler->setSilenced( true ); + try { + $runner = new JobRunner( $runJobsLogger ); + $runner->run( [ 'maxJobs' => $n ] ); + } finally { + $trxProfiler->setSilenced( $old ); + } } /** @@ -1031,7 +1037,7 @@ class MediaWiki { $port = $info['port']; } - MediaWiki\suppressWarnings(); + Wikimedia\suppressWarnings(); $sock = $host ? fsockopen( $host, $port, @@ -1040,7 +1046,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 ) {