dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
38ba6b6
)
Add comments to EditPage::getBaseRevision()
author
Aaron Schulz
<aschulz@wikimedia.org>
Tue, 24 Nov 2015 22:48:56 +0000
(14:48 -0800)
committer
Legoktm
<legoktm.wikipedia@gmail.com>
Wed, 25 Nov 2015 21:53:08 +0000
(21:53 +0000)
Change-Id: Ib0b9e26916f86f00a49c6007ae55896f7421de22
includes/EditPage.php
patch
|
blob
|
history
diff --git
a/includes/EditPage.php
b/includes/EditPage.php
index
8f33a9f
..
023c170
100644
(file)
--- a/
includes/EditPage.php
+++ b/
includes/EditPage.php
@@
-2147,7
+2147,9
@@
class EditPage {
}
/**
- * @return Revision
+ * @note: this method is very poorly named. If the user opened the form with ?oldid=X,
+ * one might think of X as the "base revision", which is NOT what this returns.
+ * @return Revision Current version when the edit was started
*/
function getBaseRevision() {
if ( !$this->mBaseRevision ) {