Use correct namespace for ResourceLoader\Context

Bug: T308718
Change-Id: Ifdd538086388fc044cba86d2ebb1d7ebb9850506
isekai
Perry Fraser 3 years ago committed by Bartosz Dziewoński
parent 08ad9426b8
commit 0cafe062cb

@ -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' )

Loading…
Cancel
Save