mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/RelatedArticles
synced 2024-11-27 17:50:25 +00:00
Use ?? instead of default value in getRawVal()
Bug: T376245 Change-Id: I068a9976e49014eee3587f0f3fc192f467d28ad0
This commit is contained in:
parent
e22d8dd0ac
commit
da8b651cfa
|
@ -89,7 +89,7 @@ class Hooks implements
|
||||||
*/
|
*/
|
||||||
private function hasRelatedArticles( Skin $skin ): bool {
|
private function hasRelatedArticles( Skin $skin ): bool {
|
||||||
$title = $skin->getTitle();
|
$title = $skin->getTitle();
|
||||||
$action = $skin->getRequest()->getRawVal( 'action', 'view' );
|
$action = $skin->getRequest()->getRawVal( 'action' ) ?? 'view';
|
||||||
return $title->inNamespace( NS_MAIN ) &&
|
return $title->inNamespace( NS_MAIN ) &&
|
||||||
// T120735
|
// T120735
|
||||||
$action === 'view' &&
|
$action === 'view' &&
|
||||||
|
|
Loading…
Reference in a new issue