Misc fixes in RevisionDelete.php.
authorAlexandre Emsenhuber <ialex.wiki@gmail.com>
Thu, 7 Jun 2012 08:39:33 +0000 (10:39 +0200)
committerAlexandre Emsenhuber <ialex.wiki@gmail.com>
Thu, 7 Jun 2012 08:44:10 +0000 (10:44 +0200)
commit9d00a6acc381b60885de935737695bfd686f2520
treedf845086af7190c8190554b555f5f656469be602
parent091a7949f91d2b6be7dc5fda246e52ab1ba366a2
Misc fixes in RevisionDelete.php.

* Use Linker::linkKnown() for links to revisions, we know that the page exists and other classes might be false since they might be old revisions
* Escape the result of Language::userTimeAndDate(), just in case
* Rewrote some code to do early return instead of nested if()'s
* Define variables only when they will actually be used

Change-Id: Ie1f16029020f980abba35d6322b89c95326f107b
includes/revisiondelete/RevisionDelete.php