// in the mediawiki.page.image.pagination module
$link = Linker::linkKnown(
$this->getTitle(),
- $label,
+ htmlspecialchars( $label ),
[],
[ 'page' => $page - 1 ]
);
$label = $this->getContext()->msg( 'imgmultipagenext' )->text();
$link = Linker::linkKnown(
$this->getTitle(),
- $label,
+ htmlspecialchars( $label ),
[],
[ 'page' => $page + 1 ]
);
$option = 0;
}
- return isset( $wgImageLimits[$option] )
- ? $wgImageLimits[$option]
- : [ 800, 600 ]; // if nothing is set, fallback to a hardcoded default
+ // if nothing is set, fallback to a hardcoded default
+ return $wgImageLimits[$option] ?? [ 800, 600 ];
}
/**