X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fspecialpage%2FQueryPage.php;h=700672f12fa05b8ceab3041d0244998b0cff279f;hb=60fbf0d875c27dc6608c97ce1f96e1df3d88b788;hp=46873b169a2ff3a37fb9a95d99c12fcd9bdeff32;hpb=1e7da67c180092b1c2effc77f590cc160127ce72;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/specialpage/QueryPage.php b/includes/specialpage/QueryPage.php index 46873b169a..700672f12f 100644 --- a/includes/specialpage/QueryPage.php +++ b/includes/specialpage/QueryPage.php @@ -285,21 +285,6 @@ abstract class QueryPage extends SpecialPage { 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 * @@ -384,7 +369,7 @@ abstract class QueryPage extends SpecialPage { /** * 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' ] ); @@ -717,17 +702,6 @@ abstract class QueryPage extends SpecialPage { } } - # Flush the final result - if ( $this->tryLastResult() ) { - $row = null; - $line = $this->formatResult( $skin, $row ); - if ( $line ) { - $html[] = $this->listoutput - ? $line - : "
  • {$line}
  • \n"; - } - } - if ( !$this->listoutput ) { $html[] = $this->closeList(); }