Replace deprecated WikiPage::factory in RequestContext

Change-Id: Ib4f3a7f7d60f9e64c0cd00eb05afea6efe81675c
This commit is contained in:
Umherirrender 2020-11-11 22:46:45 +01:00
parent b08b2d1518
commit 6f4bf12fa1

View file

@ -244,7 +244,7 @@ class RequestContext implements IContextSource, MutableContext {
if ( $title === null ) {
throw new MWException( __METHOD__ . ' called without Title object set' );
}
$this->wikipage = WikiPage::factory( $title );
$this->wikipage = MediaWikiServices::getInstance()->getWikiPageFactory()->newFromTitle( $title );
}
return $this->wikipage;