X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fcontext%2FRequestContext.php;h=ecd274b0dbb18afe6505c09fd2fafd6b655d9ace;hb=8dfae8aecebbce32861aaf74133baeaee24e56e0;hp=c87798eab089767654c3b38c63362ad5623e55ae;hpb=1ca36ada1609ad8cdf8b342c68adbca8ef19a139;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/context/RequestContext.php b/includes/context/RequestContext.php index c87798eab0..ecd274b0db 100644 --- a/includes/context/RequestContext.php +++ b/includes/context/RequestContext.php @@ -25,6 +25,7 @@ use Liuggio\StatsdClient\Factory\StatsdDataFactory; use MediaWiki\Logger\LoggerFactory; use MediaWiki\MediaWikiServices; +use Wikimedia\ScopedCallback; /** * Group all the pieces relevant to the context of a request into one instance @@ -98,7 +99,7 @@ class RequestContext implements IContextSource, MutableContext { if ( $this->config === null ) { // @todo In the future, we could move this to WebStart.php so // the Config object is ready for when initialization happens - $this->config = ConfigFactory::getDefaultInstance()->makeConfig( 'main' ); + $this->config = MediaWikiServices::getInstance()->getMainConfig(); } return $this->config; @@ -160,7 +161,7 @@ class RequestContext implements IContextSource, MutableContext { /** * Set the Title object * - * @param Title $title + * @param Title|null $title */ public function setTitle( Title $title = null ) { $this->title = $title;