dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6907efd
)
Avoid use of __METHOD__ in closures.
author
Aaron Schulz
<aschulz@wikimedia.org>
Fri, 26 Apr 2013 22:50:06 +0000
(15:50 -0700)
committer
Aaron Schulz
<aschulz@wikimedia.org>
Fri, 26 Apr 2013 22:50:06 +0000
(15:50 -0700)
Change-Id: If633400bc915e3e0582d420826c30761678f4878
includes/Title.php
patch
|
blob
|
history
diff --git
a/includes/Title.php
b/includes/Title.php
index
739c52a
..
70e8cd4
100644
(file)
--- 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 );