Merge pull request #97 from nicolas-brousse/patch-1
Harmonization of indentation and debug "Undefined variable: language"
This commit is contained in:
commit
a6f1c31537
@ -69,7 +69,7 @@ $options = get_options();
|
||||
$tree = get_tree($options['docs_path'], $base_url);
|
||||
|
||||
// If a language is set in the config, rewrite urls based on the language
|
||||
if ($language === null) {
|
||||
if (! isset($language) || $language === null) {
|
||||
$homepage_url = homepage_url($tree);
|
||||
$docs_url = docs_url($tree);
|
||||
} else {
|
||||
@ -261,7 +261,7 @@ if ($homepage && $homepage_url !== '/') {
|
||||
<div class="container-fluid fluid-height wrapper">
|
||||
<div class="navbar navbar-fixed-top">
|
||||
<div class="navbar-inner">
|
||||
<a class="brand pull-left" href="<?php echo $homepage_url;?>"><?php echo $options['title']; ?></a>
|
||||
<a class="brand pull-left" href="<?php echo $base_url ?><?php echo $homepage_url;?>"><?php echo $options['title']; ?></a>
|
||||
<p class="navbar-text pull-right">
|
||||
Generated by <a href="http://daux.io">Daux.io</a>
|
||||
</p>
|
||||
|
Loading…
Reference in New Issue
Block a user