mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-01-17 22:28:22 +01:00
[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
@ -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…
x
Reference in New Issue
Block a user