<?php
+use MediaWiki\MediaWikiServices;
+
/**
* @covers PageProps
*
( $model === null || $model === CONTENT_MODEL_WIKITEXT )
) {
$ns = $this->getDefaultWikitextNS();
- $page = MWNamespace::getCanonicalName( $ns ) . ':' . $page;
+ $page = MediaWikiServices::getInstance()->getNamespaceInfo()->
+ getCanonicalName( $ns ) . ':' . $page;
}
$page = Title::newFromText( $page );