Harmonization of indentation and debug "Undefined variable: language"

This commit is contained in:
Nicolas Brousse 2013-10-18 23:48:47 +02:00
parent 013ac7f67b
commit abdbfdc817

View File

@ -69,7 +69,7 @@ $options = get_options();
$tree = get_tree($options['docs_path'], $base_url); $tree = get_tree($options['docs_path'], $base_url);
// If a language is set in the config, rewrite urls based on the language // 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); $homepage_url = homepage_url($tree);
$docs_url = docs_url($tree); $docs_url = docs_url($tree);
} else { } else {
@ -261,7 +261,7 @@ if ($homepage && $homepage_url !== '/') {
<div class="container-fluid fluid-height wrapper"> <div class="container-fluid fluid-height wrapper">
<div class="navbar navbar-fixed-top"> <div class="navbar navbar-fixed-top">
<div class="navbar-inner"> <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"> <p class="navbar-text pull-right">
Generated by <a href="http://daux.io">Daux.io</a> Generated by <a href="http://daux.io">Daux.io</a>
</p> </p>