From db11362b97076928d76933fae56dc985534af8e7 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Fri, 26 Apr 2013 15:50:06 -0700 Subject: [PATCH] Avoid use of __METHOD__ in closures. Change-Id: If633400bc915e3e0582d420826c30761678f4878 --- includes/Title.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/includes/Title.php b/includes/Title.php index 739c52a38f..70e8cd442f 100644 --- a/includes/Title.php +++ b/includes/Title.php @@ -4493,14 +4493,15 @@ class Title { return false; } + $method = __METHOD__; $dbw = wfGetDB( DB_MASTER ); $conds = $this->pageCond(); - $dbw->onTransactionIdle( function() use ( $dbw, $conds ) { + $dbw->onTransactionIdle( function() use ( $dbw, $conds, $method ) { $dbw->update( 'page', array( 'page_touched' => $dbw->timestamp() ), $conds, - __METHOD__ + $method ); } ); HTMLFileCache::clearFileCache( $this ); -- 2.20.1