Skip to content
Permalink
Browse files

Set default value of 'additional_html_header' to null.

  • Loading branch information...
respawner committed Oct 23, 2019
1 parent d9906b6 commit e3683cbe3b56b9f1a260c9c1756b24dc9a5777e4
Showing with 3 additions and 1 deletion.
  1. +2 −0 includes/config.defaults.php
  2. +1 −1 index.php
@@ -55,6 +55,8 @@ function set_defaults_for_routers(&$parsed_config) {
'frontpage' => array(
// CSS to use
'css' => 'css/style.css',
// Extra HTML header elements
'additional_html_header' => null,
// Title
'title' => 'Looking Glass',
// Image (null for no image)
@@ -285,7 +285,7 @@ public function render() {
print('<meta name="viewport" content="width=device-width, initial-scale=1" />');
print('<meta name="keywords" content="Looking Glass, LG, BGP, prefix-list, AS-path, ASN, traceroute, ping, IPv4, IPv6, Cisco, Juniper, Internet" />');
print('<meta name="description" content="'.$this->frontpage['title'].'" />');
if($this->frontpage['additional_html_header']) {
if ($this->frontpage['additional_html_header']) {
print($this->frontpage['additional_html_header']);
}
print('<title>'.htmlentities($this->frontpage['title']).'</title>');

0 comments on commit e3683cb

Please sign in to comment.
You can’t perform that action at this time.