1
0
Fork 0
forked from blallo/rss-bridge

[core] fix global parameter values propagatino

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

View file

@ -311,10 +311,15 @@ abstract class BridgeAbstract implements BridgeInterface {
}
// Copy global parameter values to the guessed context
foreach($param as $name=>$value){
if(isset($this->parameters['global'][$name])){
$this->parameters[$queriedContext][$name]['value']=$value;
foreach($this->parameters['global'] as $name=>$properties){
if(isset($param[$name])){
$value=$param[$name];
}else if(isset($properties['value'])){
$value=$properties['value'];
}else{
continue;
}
$this->parameters[$queriedContext][$name]['value']=$value;
}
$this->collectData();