Because it calls node_show with wrong parameters. Notice how arg(2) is made sure to be revisions in the beginning of node_show and watch that string passed as $cid... Research makes it likely that Gerhard copy-pasted this in his great revision patch from the normal page view and then passed unnoticed and now that it lives in a separate function it looks even more interesting.
In 4.7 , too (this is verified by Zen).
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | node_show.patch.txt | 1.14 KB | killes@www.drop.org |
| #3 | node_show_revision.patch | 669 bytes | chx |
| #1 | node_show_revision.patch_0.txt | 666 bytes | chx |
| node_show_revision.patch.txt | 1.33 KB | chx |
Comments
Comment #1
chx commentedComment #2
webernet commentedPossibly related to: http://drupal.org/node/100836
Comment #3
chx commentedNot related. But, node_show has no default for $cid so... (thanks Zen)
Comment #4
killes@www.drop.org commentedI think I prefer this patch.
Comment #5
chx commentedI would as well but very strictly speaking this is an API change. However, it is backwards compatible. Both #3 and #4 are ready to go and I leave it to the powers above us to decide which gets in.
My 2c is on #4.
Comment #6
dries commentedThe last patch works for me, but let's take the opportunity to improve the phpdoc a bit.
Comment #7
ricabrantes commentedThis bug are fixed in D6.x-dev.. But still active in D5.x-dev..
Comment #8
dpearcefl commentedConsidering the time elapsed between now and the last comment plus the fact that D5 is no longer supported, I am closing this ticket.