1
0
mirror of https://github.com/til-schneider/slim-wiki.git synced 2025-07-31 13:50:24 +02:00

Removed warnings coming up if no footerHtml was configured

This commit is contained in:
til-schneider
2016-02-02 10:46:49 +01:00
parent 382ba9ac9f
commit 28bd12a13a
2 changed files with 10 additions and 2 deletions

View File

@@ -159,7 +159,13 @@ if ($mode == 'edit') {
} // if ($mode == 'createUser')
?>
<footer><div class="main-column"><?php echo $data['footerHtml']; ?><div class="pull-right">powered by <a href="https://github.com/til-schneider/slim-wiki" target="blank">slim-wiki</a></div></div></footer>
<footer><div class="main-column">
<?php
if (isset($data['footerHtml'])) {
echo $data['footerHtml'];
}
?><div class="pull-right">powered by <a href="https://github.com/til-schneider/slim-wiki" target="blank">slim-wiki</a></div>
</div></footer>
</div><?php // id="main-wrapper" ?>

View File

@@ -119,7 +119,9 @@ class Main {
$data['fatalErrorMessage'] = $fatalErrorMessage;
foreach (array('wikiName', 'footerHtml') as $key) {
$data[$key] = $config[$key];
if (isset($config[$key])) {
$data[$key] = $config[$key];
}
}
$data['breadcrumbs'] = $this->createBreadcrumbs($requestPathArray);