return $this->url;
}
- /*
+ /**
* Get short description URL for a files based on the page ID
*
* @return string|null
*
* Overridden by LocalFile to actually query the DB
*
- * @param integer $flags Bitfield of File::READ_* constants
+ * @param int $flags Bitfield of File::READ_* constants
*/
public function load( $flags = 0 ) {
}
// 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();
}
]
);
$metadata = [];
}
- return $handler->getContentHeaders( $metadata, $this->getWidth(), $this->getHeight() );
+ return $handler->getContentHeaders( $metadata );
}
return [];