diff options
author | Guillaume Mazoyer <gmazoyer@gravitons.in> | 2016-03-14 14:12:19 +0100 |
---|---|---|
committer | Guillaume Mazoyer <gmazoyer@gravitons.in> | 2016-03-14 14:12:19 +0100 |
commit | c5ad1c7504adf5449122ac14a7131741cff58ccf (patch) | |
tree | 81d041c3bceb5cb4f63403ac775e4eb98bc30ffb | |
parent | b1bb5fdc0ab52342ae17da470f8368e75d9172c8 (diff) |
Simplify some conditions.
-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>'); } } |