add common config settings to template variables
This commit is contained in:
parent
930060a278
commit
5e3cb283d1
@ -134,6 +134,14 @@ class d3DocumentRenderer implements BlockRendererInterface
|
|||||||
$daux->initializeConfiguration();
|
$daux->initializeConfiguration();
|
||||||
|
|
||||||
$params = $daux->getParams();
|
$params = $daux->getParams();
|
||||||
|
|
||||||
|
foreach ($params as $varname => $varvalue) {
|
||||||
|
if (false == is_array($varvalue)) {
|
||||||
|
$pattern = '/{\$'.$varname.'}/mU';
|
||||||
|
$wholeDoc = preg_replace($pattern, $varvalue, $wholeDoc);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (isset($params['variables'])) {
|
if (isset($params['variables'])) {
|
||||||
$variables = $params['variables'];
|
$variables = $params['variables'];
|
||||||
if (isset($variables) && is_array($variables) && count($variables)) {
|
if (isset($variables) && is_array($variables) && count($variables)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user