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
|
* @var Config
|
||||||
*/
|
*/
|
||||||
private $config;
|
private $vectorConfig;
|
||||||
|
|
||||||
public function __construct( Config $config ) {
|
public function __construct( Config $config ) {
|
||||||
$this->config = $config;
|
$this->vectorConfig = $config;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected static $bodyClasses = array( 'vector-animateLayout' );
|
protected static $bodyClasses = array( 'vector-animateLayout' );
|
||||||
|
@ -77,7 +77,7 @@ class SkinVector extends SkinTemplate {
|
||||||
* Override to pass our Config instance to it
|
* Override to pass our Config instance to it
|
||||||
*/
|
*/
|
||||||
public function setupTemplate( $classname, $repository = false, $cache_dir = false ) {
|
public function setupTemplate( $classname, $repository = false, $cache_dir = false ) {
|
||||||
return new $classname( $this->config );
|
return new $classname( $this->vectorConfig );
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue