(bug 15853) Wrong entries in history feed
authorMormegil <mormegil@centrum.cz>
Sat, 9 Jun 2012 21:30:46 +0000 (23:30 +0200)
committerMormegil <mormegil@centrum.cz>
Sat, 9 Jun 2012 21:30:46 +0000 (23:30 +0200)
commit0be8b842999c4f537267eba89be1e45734bde82d
treeb92abc532c670722d390c48dea01444f1842295b
parente212a8999f5472fbf3a0eca924be3d1de390a841
(bug 15853) Wrong entries in history feed

The history feed for a non-existing page fetched revisions for
rev_page=0. Even though there should be none in the database,
there obviously are, which means such feeds are full of spurious
entries.

Added an existence check, fetchRevisions now returns an empty result
for non-existent pages, which is (and has always been) handled
gracefully in feed() by emitting feedEmpty().

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