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:
56ade06
)
WikiPage: Hard deprecate second arg of prepareContentForEdit() as an int
author
Kunal Mehta
<legoktm@member.fsf.org>
Sun, 10 Sep 2017 03:35:44 +0000
(20:35 -0700)
committer
Kunal Mehta
<legoktm@member.fsf.org>
Sun, 10 Sep 2017 03:35:44 +0000
(20:35 -0700)
This was documented as deprecated in
ba2b22421526
.
Change-Id: I728cc0ea0b431138a8edb4d815c53f48e83d7143
includes/page/WikiPage.php
patch
|
blob
|
history
diff --git
a/includes/page/WikiPage.php
b/includes/page/WikiPage.php
index
312edbd
..
7f923f8
100644
(file)
--- a/
includes/page/WikiPage.php
+++ b/
includes/page/WikiPage.php
@@
-1989,6
+1989,7
@@
class WikiPage implements Page, IDBAccessObject {
// This code path is deprecated, and nothing is known to
// use it, so performance here shouldn't be a worry.
if ( $revid !== null ) {
+ wfDeprecated( __METHOD__ . ' with $revision = revision ID', '1.25' );
$revision = Revision::newFromId( $revid, Revision::READ_LATEST );
} else {
$revision = null;