diff --git a/index.php b/index.php index 65a6fbb..aed1f1c 100644 --- a/index.php +++ b/index.php @@ -42,12 +42,12 @@ Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: -* Redistributions of source code must retain the above copyright notice, - this list of conditions and the following disclaimer. +* Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. -* Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. +* Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. This software is provided by the copyright holders and contributors "as is" and any express or implied warranties, including, but not limited @@ -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 { @@ -96,13 +96,13 @@ $page = load_page($tree, $url_params); // If a timezone has been set in the config file, override the default PHP timezone for this application. if(isset($options['timezone'])) { - date_default_timezone_set($options['timezone']); + date_default_timezone_set($options['timezone']); } // Redirect to docs, if there is no homepage if ($homepage && $homepage_url !== '/') { - header('Location: '.$homepage_url); + header('Location: '.$homepage_url); } ?> @@ -112,94 +112,94 @@ if ($homepage && $homepage_url !== '/') { - <?php echo $options['title']; ?> - - - - - - - - - - - + <?php echo $options['title']; ?> + + + + + + + + + + + - - + + - - - - - - - + + + + + + + - - - + + + - - - - - - + + + + + + - - - + + + -
-
-
-
- -

- -
-
-
-
- - <?php echo $options['title'];?> - -
-
-
-
+
+
+
+
+ +

+ +
+
+
+
+ + <?php echo $options['title'];?> + +
+
+
+
-
-
- +
+
-
-
-
-
- -
-
-
-
+
+
+
+
+ +
+
+
+
- + - - - - Fork me on GitHub - -
- + + + + Fork me on GitHub + +
+ -
-
- -
- -
- - + + + +
+
+
+
+