[core] variable renaming
Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com>
This commit is contained in:
parent
ea1d53a24a
commit
85625318b1
1 changed files with 4 additions and 4 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue