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:
@@ -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" ?>
|
||||
|
||||
|
@@ -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);
|
||||
|
Reference in New Issue
Block a user