mirror of
https://github.com/til-schneider/slim-wiki.git
synced 2025-08-04 15:47:33 +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')
|
} // 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" ?>
|
</div><?php // id="main-wrapper" ?>
|
||||||
|
|
||||||
|
@@ -119,8 +119,10 @@ class Main {
|
|||||||
$data['fatalErrorMessage'] = $fatalErrorMessage;
|
$data['fatalErrorMessage'] = $fatalErrorMessage;
|
||||||
|
|
||||||
foreach (array('wikiName', 'footerHtml') as $key) {
|
foreach (array('wikiName', 'footerHtml') as $key) {
|
||||||
|
if (isset($config[$key])) {
|
||||||
$data[$key] = $config[$key];
|
$data[$key] = $config[$key];
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
$data['breadcrumbs'] = $this->createBreadcrumbs($requestPathArray);
|
$data['breadcrumbs'] = $this->createBreadcrumbs($requestPathArray);
|
||||||
$data['showCreateUserButton'] = $showCreateUserButton;
|
$data['showCreateUserButton'] = $showCreateUserButton;
|
||||||
|
Reference in New Issue
Block a user