From 6b174467a97924be8bde05283bd84e5c5f72cc8c Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Tue, 15 May 2018 12:52:19 -0700 Subject: [PATCH] Add missing __METHOD__ to onTransactionPreCommitOrIdle() caller Change-Id: I3722411dc63ff69253096f9c05e4fd1f130931ae --- includes/Title.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/includes/Title.php b/includes/Title.php index b771477fad..7f0dbd7d3c 100644 --- a/includes/Title.php +++ b/includes/Title.php @@ -4694,9 +4694,12 @@ class Title implements LinkTarget { } $dbw = wfGetDB( DB_MASTER ); - $dbw->onTransactionPreCommitOrIdle( function () { - ResourceLoaderWikiModule::invalidateModuleCache( $this, null, null, wfWikiID() ); - } ); + $dbw->onTransactionPreCommitOrIdle( + function () { + ResourceLoaderWikiModule::invalidateModuleCache( $this, null, null, wfWikiID() ); + }, + __METHOD__ + ); $conds = $this->pageCond(); DeferredUpdates::addUpdate( -- 2.20.1