X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FStorage%2FRevisionLookup.php;h=45cd1841f0d88cae7dddd85aad5d471bbe70057f;hb=52b74d44d522c2a1b67f9ccc2b8f7e44b6b52d7c;hp=afe0f816d3d993a7656288ee3f528f5ffc636953;hpb=27d86751f0dfdab38bed87b12fdd8a2a591cc368;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/Storage/RevisionLookup.php b/includes/Storage/RevisionLookup.php index afe0f816d3..45cd1841f0 100644 --- a/includes/Storage/RevisionLookup.php +++ b/includes/Storage/RevisionLookup.php @@ -84,10 +84,11 @@ interface RevisionLookup extends IDBAccessObject { * MCR migration note: this replaces Revision::getPrevious * * @param RevisionRecord $rev + * @param Title $title if known (optional) * * @return RevisionRecord|null */ - public function getPreviousRevision( RevisionRecord $rev ); + public function getPreviousRevision( RevisionRecord $rev, Title $title = null ); /** * Get next revision for this title @@ -95,10 +96,11 @@ interface RevisionLookup extends IDBAccessObject { * MCR migration note: this replaces Revision::getNext * * @param RevisionRecord $rev + * @param Title $title if known (optional) * * @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