mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/PdfHandler
synced 2024-11-24 00:07:10 +00:00
Use ::class for class name
This works also for non-existing classes, because it is resolved on compile time Change-Id: I789df6994b22529a8bc09123369dae0f1b52d565
This commit is contained in:
parent
42afa92436
commit
5740d02758
|
@ -57,7 +57,7 @@ class CreatePdfThumbnailsJob extends Job {
|
||||||
global $wgImageLimits;
|
global $wgImageLimits;
|
||||||
// Ignore user preferences, do default thumbnails
|
// Ignore user preferences, do default thumbnails
|
||||||
// everything here shamelessy copied and reused from includes/ImagePage.php
|
// everything here shamelessy copied and reused from includes/ImagePage.php
|
||||||
if ( method_exists( '\MediaWiki\User\UserOptionsLookup', 'getDefaultOption' ) ) {
|
if ( method_exists( \MediaWiki\User\UserOptionsLookup::class, 'getDefaultOption' ) ) {
|
||||||
// MW 1.35+
|
// MW 1.35+
|
||||||
$userOptionsLookup = MediaWikiServices::getInstance()->getUserOptionsLookup();
|
$userOptionsLookup = MediaWikiServices::getInstance()->getUserOptionsLookup();
|
||||||
$sizeSel = $userOptionsLookup->getDefaultOption( 'imagesize' );
|
$sizeSel = $userOptionsLookup->getDefaultOption( 'imagesize' );
|
||||||
|
|
Loading…
Reference in a new issue