From: Aaron Schulz Date: Fri, 26 Apr 2013 22:50:06 +0000 (-0700) Subject: Avoid use of __METHOD__ in closures. X-Git-Tag: 1.31.0-rc.0~19851 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/?a=commitdiff_plain;h=db11362b97076928d76933fae56dc985534af8e7;p=lhc%2Fweb%2Fwiklou.git Avoid use of __METHOD__ in closures. Change-Id: If633400bc915e3e0582d420826c30761678f4878 --- 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 );