$prefixList = $this->getNamespaceKeyAndText( $namespace, $prefix );
$namespaces = $wgContLang->getNamespaces();
$res = null;
$prefixList = $this->getNamespaceKeyAndText( $namespace, $prefix );
$namespaces = $wgContLang->getNamespaces();
$res = null;
if ( $res->numRows() > 0 ) {
$out = Html::openElement( 'ul', [ 'class' => 'mw-prefixindex-list' ] );
$linkCache = MediaWikiServices::getInstance()->getLinkCache();
if ( $res->numRows() > 0 ) {
$out = Html::openElement( 'ul', [ 'class' => 'mw-prefixindex-list' ] );
$linkCache = MediaWikiServices::getInstance()->getLinkCache();
$prefixLength = strlen( $prefix );
foreach ( $res as $row ) {
if ( $n >= $this->maxPerPage ) {
$prefixLength = strlen( $prefix );
foreach ( $res as $row ) {
if ( $n >= $this->maxPerPage ) {
'prefix' => $prefix,
'hideredirects' => $this->hideRedirects,
'stripprefix' => $this->stripPrefix,
'prefix' => $prefix,
'hideredirects' => $this->hideRedirects,
'stripprefix' => $this->stripPrefix,
- $this->msg( 'nextpage', str_replace( '_', ' ', $s->page_title ) )->escaped(),
+ $this->msg( 'nextpage', str_replace( '_', ' ', $nextRow->page_title ) )->escaped(),