mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/PageImages
synced 2024-11-15 03:43:46 +00:00
build: Updating mediawiki/mediawiki-phan-config to 0.5.0
Change-Id: I7d94649c26fda91cf8072c9530ca8e59f42f8b9a
This commit is contained in:
parent
7009da69fa
commit
75000f5154
|
@ -4,7 +4,7 @@
|
|||
"jakub-onderka/php-console-highlighter": "0.3.2",
|
||||
"mediawiki/mediawiki-codesniffer": "24.0.0",
|
||||
"mediawiki/minus-x": "0.3.1",
|
||||
"mediawiki/mediawiki-phan-config": "0.4.0"
|
||||
"mediawiki/mediawiki-phan-config": "0.5.0"
|
||||
},
|
||||
"scripts": {
|
||||
"fix": [
|
||||
|
|
|
@ -51,9 +51,7 @@ class ApiQueryPageImages extends ApiQueryBase {
|
|||
// in #execute, so include the set of missing filespace pages,
|
||||
// which were initially rejected in ApiPageSet#execute.
|
||||
$missingTitles = $pageSet->getMissingTitlesByNamespace();
|
||||
$missingFileTitles = isset( $missingTitles[NS_FILE] )
|
||||
? $missingTitles[NS_FILE]
|
||||
: [];
|
||||
$missingFileTitles = $missingTitles[NS_FILE] ?? [];
|
||||
|
||||
// $titles is a map of ID to title object, which is ideal,
|
||||
// whereas $missingFileTitles is a map of title text to ID.
|
||||
|
|
|
@ -149,9 +149,8 @@ class ParserFileProcessingHookHandlers {
|
|||
|| isset( $params['frame']['thumb'] )
|
||||
|| isset( $params['frame']['frameless'] )
|
||||
) {
|
||||
$params['handler']['width'] = isset( $wgThumbLimits[$wgDefaultUserOptions['thumbsize']] )
|
||||
? $wgThumbLimits[$wgDefaultUserOptions['thumbsize']]
|
||||
: 250;
|
||||
$params['handler']['width'] = $wgThumbLimits[$wgDefaultUserOptions['thumbsize']]
|
||||
?? 250;
|
||||
} else {
|
||||
$params['handler']['width'] = $file->getWidth();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue