dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
MCR: replace slot_inherited with slot_origin
[lhc/web/wiklou.git]
/
includes
/
Storage
/
RevisionLookup.php
diff --git
a/includes/Storage/RevisionLookup.php
b/includes/Storage/RevisionLookup.php
index
5cd157b
..
45cd184
100644
(file)
--- a/
includes/Storage/RevisionLookup.php
+++ b/
includes/Storage/RevisionLookup.php
@@
-22,7
+22,7
@@
namespace MediaWiki\Storage;
namespace MediaWiki\Storage;
-use
\
IDBAccessObject;
+use IDBAccessObject;
use MediaWiki\Linker\LinkTarget;
use Title;
use MediaWiki\Linker\LinkTarget;
use Title;
@@
-84,10
+84,11
@@
interface RevisionLookup extends IDBAccessObject {
* MCR migration note: this replaces Revision::getPrevious
*
* @param RevisionRecord $rev
* MCR migration note: this replaces Revision::getPrevious
*
* @param RevisionRecord $rev
+ * @param Title $title if known (optional)
*
* @return RevisionRecord|null
*/
*
* @return RevisionRecord|null
*/
- public function getPreviousRevision( RevisionRecord $rev );
+ public function getPreviousRevision( RevisionRecord $rev
, Title $title = null
);
/**
* Get next revision for this title
/**
* Get next revision for this title
@@
-95,10
+96,11
@@
interface RevisionLookup extends IDBAccessObject {
* MCR migration note: this replaces Revision::getNext
*
* @param RevisionRecord $rev
* MCR migration note: this replaces Revision::getNext
*
* @param RevisionRecord $rev
+ * @param Title $title if known (optional)
*
* @return RevisionRecord|null
*/
*
* @return RevisionRecord|null
*/
- public function getNextRevision( RevisionRecord $rev );
+ public function getNextRevision( RevisionRecord $rev
, Title $title = null
);
/**
* Load a revision based on a known page ID and current revision ID from the DB
/**
* Load a revision based on a known page ID and current revision ID from the DB