Fix restriction — must be string

This commit is contained in:
Universal Omega 2021-12-19 11:01:48 -07:00 committed by GitHub
parent 6dcbec74c3
commit c934b05a49
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2,7 +2,7 @@
class SpecialPortableInfoboxBuilder extends SpecialPage {
public function __construct() {
$restriction = $this->getConfig()->get( 'NamespaceProtection' )[NS_TEMPLATE] ?? '';
$restriction = $this->getConfig()->get( 'NamespaceProtection' )[NS_TEMPLATE][0] ?? '';
parent::__construct( 'PortableInfoboxBuilder', $restriction );
}