(bug 39397) Only show rollback links if they work
authorMarius Hoch <hoo@online.de>
Thu, 1 Nov 2012 20:04:12 +0000 (21:04 +0100)
committerMarius Hoch <hoo@online.de>
Wed, 9 Jan 2013 16:04:44 +0000 (17:04 +0100)
commita53fe6f080a2dfe48ed77c09af9e09ef37085408
tree062e7b48d3bb2858141a6f84a5be06ddf501c28b
parent1b2c43c477e3f97ff1175b03ef1f1c7fcbb8f49b
(bug 39397) Only show rollback links if they work

To only show rollback links if they work I had to patch Linker
to have a function (Linker::rollbackData) which can verify
that the editor isn't the only editor of the page. Furthermore
it is checked that the user name or the text of the revision
we might rollback to isn't deleted. Due to the fact that I've
altered the already existing method which showed how many edits
a rollback will revert for that, this wont affect the performance.

Change-Id: I5d1adec993370c39ae8c5c712edd919d456441c6
RELEASE-NOTES-1.21
includes/DefaultSettings.php
includes/Linker.php
includes/actions/HistoryAction.php
includes/diff/DifferenceEngine.php