aboutsummaryrefslogtreecommitdiffstats
path: root/includes/Storage
diff options
context:
space:
mode:
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>2020-06-03 23:58:34 +0000
committerGerrit Code Review <gerrit@wikimedia.org>2020-06-03 23:58:34 +0000
commit2db34afa49329f3e5f3f87c5ed25c86aaa206ec5 (patch)
tree051c357b06eff55bcb9e7099790340e2b79ff335 /includes/Storage
parent08dae812d03e857f31cc0fd6799a4d1f139e3488 (diff)
parent381d873a8bc10a9433520da9e8a5e865c93f8112 (diff)
downloadmediawikicore-2db34afa49329f3e5f3f87c5ed25c86aaa206ec5.tar.gz
mediawikicore-2db34afa49329f3e5f3f87c5ed25c86aaa206ec5.zip
Merge "Replace core uses and hard deprecate Parser(Options) Revision methods"
Diffstat (limited to 'includes/Storage')
-rw-r--r--includes/Storage/DerivedPageDataUpdater.php9
1 files changed, 4 insertions, 5 deletions
diff --git a/includes/Storage/DerivedPageDataUpdater.php b/includes/Storage/DerivedPageDataUpdater.php
index ad823234db97..3156278762a4 100644
--- a/includes/Storage/DerivedPageDataUpdater.php
+++ b/includes/Storage/DerivedPageDataUpdater.php
@@ -806,12 +806,11 @@ class DerivedPageDataUpdater implements IDBAccessObject, LoggerAwareInterface {
$this->revision->setUser( $user );
// Set up ParserOptions to operate on the new revision
- $oldCallback = $userPopts->getCurrentRevisionCallback();
- $userPopts->setCurrentRevisionCallback(
- function ( Title $parserTitle, $parser = false ) use ( $title, $oldCallback ) {
+ $oldCallback = $userPopts->getCurrentRevisionRecordCallback();
+ $userPopts->setCurrentRevisionRecordCallback(
+ function ( Title $parserTitle, $parser = null ) use ( $title, $oldCallback ) {
if ( $parserTitle->equals( $title ) ) {
- $legacyRevision = new Revision( $this->revision );
- return $legacyRevision;
+ return $this->revision;
} else {
return call_user_func( $oldCallback, $parserTitle, $parser );
}