Replace deprecated WikiPage::factory in RequestContext
Change-Id: Ib4f3a7f7d60f9e64c0cd00eb05afea6efe81675c
This commit is contained in:
parent
b08b2d1518
commit
6f4bf12fa1
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue