mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/Vector.git
synced 2024-09-23 10:21:40 +00:00
Make it obvious the config object belongs to the Vector skin
Change-Id: Id4504565feedaa31e170ea21782fed8043511b31
This commit is contained in:
parent
83707028e5
commit
9ff29df16a
|
@ -33,10 +33,10 @@ class SkinVector extends SkinTemplate {
|
|||
/**
|
||||
* @var Config
|
||||
*/
|
||||
private $config;
|
||||
private $vectorConfig;
|
||||
|
||||
public function __construct( Config $config ) {
|
||||
$this->config = $config;
|
||||
$this->vectorConfig = $config;
|
||||
}
|
||||
|
||||
protected static $bodyClasses = array( 'vector-animateLayout' );
|
||||
|
@ -77,7 +77,7 @@ class SkinVector extends SkinTemplate {
|
|||
* Override to pass our Config instance to it
|
||||
*/
|
||||
public function setupTemplate( $classname, $repository = false, $cache_dir = false ) {
|
||||
return new $classname( $this->config );
|
||||
return new $classname( $this->vectorConfig );
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue