add versionselector variable check
This commit is contained in:
parent
f8a6a64889
commit
50caa843f3
@ -122,7 +122,7 @@ class d3DocumentRenderer implements BlockRendererInterface
|
|||||||
$wholeDoc = $htmlRenderer->renderBlocks($block->children());
|
$wholeDoc = $htmlRenderer->renderBlocks($block->children());
|
||||||
|
|
||||||
$output = new NullOutput();
|
$output = new NullOutput();
|
||||||
$daux = new Daux(Daux::LIVE_MODE, $output);
|
$daux = new Daux(Daux::STATIC_MODE, $output);
|
||||||
$daux->initializeConfiguration();
|
$daux->initializeConfiguration();
|
||||||
|
|
||||||
$variables = $daux->getParams()['variables'];
|
$variables = $daux->getParams()['variables'];
|
||||||
|
@ -24,7 +24,8 @@
|
|||||||
|
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
if ($params['versionselector']) {
|
if (isset($params['versionselector']) && $params['versionselector'] &&
|
||||||
|
isset($params['versiondirectoryindex']) && $params['versiondirectoryindex']) {
|
||||||
echo "<div>";
|
echo "<div>";
|
||||||
echo $this->translate("selectversion").': ';
|
echo $this->translate("selectversion").': ';
|
||||||
|
|
||||||
|
@ -25,7 +25,8 @@
|
|||||||
|
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
if ($params['versionselector']) {
|
if (isset($params['versionselector']) && $params['versionselector'] &&
|
||||||
|
isset($params['versiondirectoryindex']) && $params['versiondirectoryindex']) {
|
||||||
echo "<div class='versionselector'>";
|
echo "<div class='versionselector'>";
|
||||||
echo $this->translate("selectversion").': ';
|
echo $this->translate("selectversion").': ';
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user