diff options
-rw-r--r-- | docs/configuration.md | 2 | ||||
-rw-r--r-- | index.php | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/docs/configuration.md b/docs/configuration.md index 47ef38e..9335a51 100644 --- a/docs/configuration.md +++ b/docs/configuration.md @@ -58,7 +58,7 @@ $config['frontpage']['peering_policy_file'] = null; ``` Sets the path to the peering policy file. If set to null no peering policy will be able to be shown. The peering policy file must be located in a -readable location and must contain only HTML formatted text. +readable location and must contain HTML formatted text. ```php $config['frontpage']['disclaimer'] = 'Disclaimer example'; @@ -95,18 +95,18 @@ final class LookingGlass { } private function render_header() { - if ($this->frontpage['header_link'] != null) { + if ($this->frontpage['header_link']) { print('<a href="'.$this->frontpage['header_link'].'" title="Home">'); } print('<div class="header_bar">'); if ($this->frontpage['show_title']) { print('<h1>'.htmlentities($this->frontpage['title']).'</h1><br />'); } - if ($this->frontpage['image'] != null) { + if ($this->frontpage['image']) { print('<img src="'.$this->frontpage['image'].'" alt="Logo" />'); } print('</div>'); - if ($this->frontpage['header_link'] != null) { + if ($this->frontpage['header_link']) { print('</a>'); } } |