Skip to content

Commit fb9474a

Browse files
committed
Add preproduction banner to legacy header template.
This uses the translations from the preprodwarning module, and can be removed in 2.0 (together with legacy templates).
1 parent 47fe74b commit fb9474a

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

templates/includes/header.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,3 +206,7 @@
206206
echo $c;
207207
}
208208
}
209+
$config = \SimpleSAML\Configuration::getInstance();
210+
if(! $config->getBoolean('production', true)) {
211+
echo '<div class="caution">' . $this->t('{preprodwarning:warning:warning}'). '</div>';
212+
}

0 commit comments

Comments
 (0)