The parent SpecialPage::execute also has no return and not all return
statements in QueryPage::execute actual return a value
Change-Id: If7a38ca5ed1107b6a5a740acae54295534950696
* This is the actual workhorse. It does everything needed to make a
* real, honest-to-gosh query page.
* @param string $par
- * @return int
*/
function execute( $par ) {
global $wgQueryCacheLimit, $wgDisableQueryPageUpdate;
if ( $this->isCached() && !$this->isCacheable() ) {
$out->addWikiMsg( 'querypage-disabled' );
- return 0;
+ return;
}
$out->setSyndicated( $this->isSyndicated() );
}
$out->addHTML( Xml::closeElement( 'div' ) );
-
- return min( $this->numRows, $this->limit ); # do not return the one extra row, if exist
}
/**