add versionselector variable check

This commit is contained in:
Daniel Seifert 2018-07-19 20:26:25 +02:00
bovenliggende ee3cf6918e
commit 2b037e75e1
3 gewijzigde bestanden met toevoegingen van 5 en 3 verwijderingen

Bestand weergeven

@ -122,7 +122,7 @@ class d3DocumentRenderer implements BlockRendererInterface
$wholeDoc = $htmlRenderer->renderBlocks($block->children());
$output = new NullOutput();
$daux = new Daux(Daux::LIVE_MODE, $output);
$daux = new Daux(Daux::STATIC_MODE, $output);
$daux->initializeConfiguration();
$variables = $daux->getParams()['variables'];

Bestand weergeven

@ -24,7 +24,8 @@
<?php
if ($params['versionselector']) {
if (isset($params['versionselector']) && $params['versionselector'] &&
isset($params['versiondirectoryindex']) && $params['versiondirectoryindex']) {
echo "<div>";
echo $this->translate("selectversion").': ';

Bestand weergeven

@ -25,7 +25,8 @@
<?php
if ($params['versionselector']) {
if (isset($params['versionselector']) && $params['versionselector'] &&
isset($params['versiondirectoryindex']) && $params['versiondirectoryindex']) {
echo "<div class='versionselector'>";
echo $this->translate("selectversion").': ';