Merge pull request #97 from nicolas-brousse/patch-1

Harmonization of indentation and debug "Undefined variable: language"
This commit is contained in:
Denis Kisselev 2013-10-18 19:08:31 -07:00
commit a6f1c31537
1 changed files with 199 additions and 199 deletions

View File

@ -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>