Fix documentation of HistoryPager::lastLink() and make code more readable
authorAlexandre Emsenhuber <mediawiki@emsenhuber.ch>
Sun, 29 Jun 2014 15:42:45 +0000 (17:42 +0200)
committerAlexandre Emsenhuber <mediawiki@emsenhuber.ch>
Tue, 1 Jul 2014 17:10:07 +0000 (19:10 +0200)
commit28c16e384bd6c0b6885a18129d5283917270fa27
tree07479301d315584572b382074f16a5fe49ffa354
parent3e5095526902d52e0ee6f191519e0acd0c83aac6
Fix documentation of HistoryPager::lastLink() and make code more readable

- Describe the possible types of $next parameter in the documentation
  rather than inline along with the possible values
- Split the big if ... elseif block into separate blocks. The elseif
  are not needed since each path returns
- Only create the revision object when really necessary

Change-Id: Ic92a6f6bd405d3f820d562a7322d34e3d9d33d17
includes/actions/HistoryAction.php