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:
parent
701aff420d
commit
ea1d53a24a
1 changed files with 8 additions and 3 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue