[core] variable renaming

Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com>
This commit is contained in:
Pierre Mazière 2016-08-28 00:01:00 +02:00
parent ea1d53a24a
commit 85625318b1

View file

@ -291,9 +291,9 @@ abstract class BridgeAbstract implements BridgeInterface {
$contexts[]='global';
}
foreach($contexts as $context){
foreach($this->parameters[$context] as $p=>$properties){
foreach($this->parameters[$context] as $name=>$properties){
if(!isset($properties['type'])){
$this->parameters[$context][$p]['type']='text';
$this->parameters[$context][$name]['type']='text';
}
if(isset($properties['value'])){
continue;
@ -301,9 +301,9 @@ abstract class BridgeAbstract implements BridgeInterface {
switch($properties['type']){
case 'checkbox':
if(!isset($properties['defaultValue'])){
$this->parameters[$context][$p]['value']=false;
$this->parameters[$context][$name]['value']=false;
}else{
$this->parameters[$context][$p]['value']=$properties['defaultValue'];
$this->parameters[$context][$name]['value']=$properties['defaultValue'];
}
break;
}