X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_ecrire%28%22suivi_revisions%22%29%20.%20%22?a=blobdiff_plain;f=includes%2Factions%2FHistoryAction.php;h=4df2f563c790de892e3d928a65e538506c867819;hb=0dddba1a9ad62e64f4bc19d54cf2fb5ff656a486;hp=538b0a123340c41e5d32abbf66039a3832e5bdac;hpb=6a2c1ec30b75003a7f0259477cf4616090f30607;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/actions/HistoryAction.php b/includes/actions/HistoryAction.php index 538b0a1233..4df2f563c7 100644 --- a/includes/actions/HistoryAction.php +++ b/includes/actions/HistoryAction.php @@ -22,7 +22,7 @@ */ use MediaWiki\MediaWikiServices; -use Wikimedia\Rdbms\ResultWrapper; +use Wikimedia\Rdbms\IResultWrapper; use Wikimedia\Rdbms\FakeResultWrapper; /** @@ -142,6 +142,7 @@ class HistoryAction extends FormlessAction { /** * Print the history page for an article. + * @return string|null */ function onView() { $out = $this->getOutput(); @@ -151,7 +152,7 @@ class HistoryAction extends FormlessAction { * Allow client caching. */ if ( $out->checkLastModified( $this->page->getTouched() ) ) { - return; // Client cache fresh and headers sent, nothing more to do. + return null; // Client cache fresh and headers sent, nothing more to do. } $this->preCacheMessages(); @@ -185,7 +186,7 @@ class HistoryAction extends FormlessAction { $feedType = $request->getRawVal( 'feed' ); if ( $feedType !== null ) { $this->feed( $feedType ); - return; + return null; } $this->addHelpLink( @@ -216,7 +217,7 @@ class HistoryAction extends FormlessAction { ] ); - return; + return null; } $ts = $this->getTimestampFromRequest( $request ); @@ -300,6 +301,8 @@ class HistoryAction extends FormlessAction { $pager->getNavigationBar() ); $out->preventClickjacking( $pager->getPreventClickjacking() ); + + return null; } /** @@ -310,7 +313,7 @@ class HistoryAction extends FormlessAction { * @param int $limit The limit number of revisions to get * @param int $offset * @param int $direction Either self::DIR_PREV or self::DIR_NEXT - * @return ResultWrapper + * @return IResultWrapper */ function fetchRevisions( $limit, $offset, $direction ) { // Fail if article doesn't exist.