return [];
}
- /**
- * Some special pages (for example SpecialListusers used to) might not return the
- * current object formatted, but return the previous one instead.
- * Setting this to return true will ensure formatResult() is called
- * one more time to make sure that the very last result is formatted
- * as well.
- *
- * @deprecated since 1.27
- *
- * @return bool
- */
- function tryLastResult() {
- return false;
- }
-
/**
* Clear the cache and save new results
*
/**
* Get a DB connection to be used for slow recache queries
- * @return \Wikimedia\Rdbms\Database
+ * @return IDatabase
*/
function getRecacheDB() {
return wfGetDB( DB_REPLICA, [ $this->getName(), 'QueryPage::recache', 'vslow' ] );
$miserMaxResults = $this->getConfig()->get( 'MiserMode' )
&& ( $this->offset + $this->limit >= $this->getMaxResults() );
$atEnd = ( $this->numRows <= $this->limit ) || $miserMaxResults;
- $paging = $this->getLanguage()->viewPrevNext( $this->getPageTitle( $par ), $this->offset,
- $this->limit, $this->linkParameters(), $atEnd );
+ $paging = $this->buildPrevNextNavigation( $this->offset,
+ $this->limit, $this->linkParameters(), $atEnd, $par );
$out->addHTML( '<p>' . $paging . '</p>' );
} else {
# No results to show, so don't bother with "showing X of Y" etc.
}
}
- # Flush the final result
- if ( $this->tryLastResult() ) {
- $row = null;
- $line = $this->formatResult( $skin, $row );
- if ( $line ) {
- $html[] = $this->listoutput
- ? $line
- : "<li>{$line}</li>\n";
- }
- }
-
if ( !$this->listoutput ) {
$html[] = $this->closeList();
}