Last modified: 2010-05-15 14:36:04 UTC
Bug 4838 introduced relative oldids (prev, next, cur) for raw pages. This patch addresses some corner cases that don't work correctly. Both urls of the form oldid=0&direction=next and oldid=(first_revision_id)&direction=prev should give no output, since the revision which they attempt to access does not exist. They both give the current revision. direction=prev without specifying an oldid should give the penultimate revision (if there is one) instead of giving the current revision. This patch fixes these bugs.
Created attachment 1424 [details] fix