mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/RelatedArticles
synced 2024-11-23 15:57:06 +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 {
|
||||
$title = $skin->getTitle();
|
||||
$action = $skin->getRequest()->getRawVal( 'action', 'view' );
|
||||
$action = $skin->getRequest()->getRawVal( 'action' ) ?? 'view';
|
||||
return $title->inNamespace( NS_MAIN ) &&
|
||||
// T120735
|
||||
$action === 'view' &&
|
||||
|
|
Loading…
Reference in a new issue