|
|
|
@ -2,7 +2,7 @@
|
|
|
|
|
|
|
|
|
|
namespace MediaWiki\Skin\Timeless;
|
|
|
|
|
|
|
|
|
|
use ResourceLoaderContext;
|
|
|
|
|
use MediaWiki\ResourceLoader\Context;
|
|
|
|
|
use ResourceLoaderSkinModule;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
@ -12,10 +12,10 @@ class TimelessVariablesModule extends ResourceLoaderSkinModule {
|
|
|
|
|
/**
|
|
|
|
|
* Add our LESS variables
|
|
|
|
|
*
|
|
|
|
|
* @param ResourceLoaderContext $context
|
|
|
|
|
* @param Context $context
|
|
|
|
|
* @return array LESS variables
|
|
|
|
|
*/
|
|
|
|
|
protected function getLessVars( ResourceLoaderContext $context ) {
|
|
|
|
|
protected function getLessVars( Context $context ) {
|
|
|
|
|
$vars = parent::getLessVars( $context );
|
|
|
|
|
$config = $this->getConfig();
|
|
|
|
|
|
|
|
|
@ -41,10 +41,10 @@ class TimelessVariablesModule extends ResourceLoaderSkinModule {
|
|
|
|
|
/**
|
|
|
|
|
* Register the config var with the caching stuff so it properly updates the cache
|
|
|
|
|
*
|
|
|
|
|
* @param ResourceLoaderContext $context
|
|
|
|
|
* @param Context $context
|
|
|
|
|
* @return array
|
|
|
|
|
*/
|
|
|
|
|
public function getDefinitionSummary( ResourceLoaderContext $context ) {
|
|
|
|
|
public function getDefinitionSummary( Context $context ) {
|
|
|
|
|
$summary = parent::getDefinitionSummary( $context );
|
|
|
|
|
$summary[] = [
|
|
|
|
|
'TimelessBackdropImage' => $this->getConfig()->get( 'TimelessBackdropImage' )
|
|
|
|
|