mirror of
https://github.com/Universal-Omega/PortableInfobox.git
synced 2024-12-19 11:40:31 +00:00
5f13d93478
* Add wgPortableInfoboxResponsiblyOpenCollapsed * Cast config to bool
12 lines
368 B
PHP
12 lines
368 B
PHP
<?php
|
|
|
|
class PortableInfoboxResourceLoaderModule extends ResourceLoaderFileModule {
|
|
/** @inheritDoc */
|
|
protected function getLessVars( ResourceLoaderContext $context ) {
|
|
$lessVars = parent::getLessVars( $context );
|
|
$lessVars[ 'responsibly-open-collapsed'] =
|
|
(bool)$this->getConfig()->get( 'PortableInfoboxResponsiblyOpenCollapsed' );
|
|
return $lessVars;
|
|
}
|
|
}
|