mirror of
https://github.com/Universal-Omega/PortableInfobox.git
synced 2024-12-23 13:32:36 +00:00
3aaa4fbea6
Also fixes fatals on MediaWiki 1.42
16 lines
421 B
PHP
16 lines
421 B
PHP
<?php
|
|
|
|
use MediaWiki\ResourceLoader\Context;
|
|
use MediaWiki\ResourceLoader\FileModule;
|
|
|
|
class PortableInfoboxResourceLoaderModule extends FileModule {
|
|
|
|
/** @inheritDoc */
|
|
protected function getLessVars( Context $context ) {
|
|
$lessVars = parent::getLessVars( $context );
|
|
$lessVars[ 'responsibly-open-collapsed'] =
|
|
(bool)$this->getConfig()->get( 'PortableInfoboxResponsiblyOpenCollapsed' );
|
|
return $lessVars;
|
|
}
|
|
}
|