[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';
|
$contexts[]='global';
|
||||||
}
|
}
|
||||||
foreach($contexts as $context){
|
foreach($contexts as $context){
|
||||||
foreach($this->parameters[$context] as $p=>$properties){
|
foreach($this->parameters[$context] as $name=>$properties){
|
||||||
if(!isset($properties['type'])){
|
if(!isset($properties['type'])){
|
||||||
$this->parameters[$context][$p]['type']='text';
|
$this->parameters[$context][$name]['type']='text';
|
||||||
}
|
}
|
||||||
if(isset($properties['value'])){
|
if(isset($properties['value'])){
|
||||||
continue;
|
continue;
|
||||||
|
@ -301,9 +301,9 @@ abstract class BridgeAbstract implements BridgeInterface {
|
||||||
switch($properties['type']){
|
switch($properties['type']){
|
||||||
case 'checkbox':
|
case 'checkbox':
|
||||||
if(!isset($properties['defaultValue'])){
|
if(!isset($properties['defaultValue'])){
|
||||||
$this->parameters[$context][$p]['value']=false;
|
$this->parameters[$context][$name]['value']=false;
|
||||||
}else{
|
}else{
|
||||||
$this->parameters[$context][$p]['value']=$properties['defaultValue'];
|
$this->parameters[$context][$name]['value']=$properties['defaultValue'];
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue