// Thumbnailing a very large file could result in network saturation if
// everyone does it at once.
if ( $this->getSize() >= 1e7 ) { // 10MB
- $that = $this;
$work = new PoolCounterWorkViaCallback( 'GetLocalFileCopy', sha1( $this->getName() ),
[
- 'doWork' => function () use ( $that ) {
- return $that->getLocalRefPath();
+ 'doWork' => function () {
+ return $this->getLocalRefPath();
}
]
);