Fix HTML title when no site title
This commit is contained in:
parent
d6f8e7b84e
commit
2f00e1e46e
1 changed files with 1 additions and 2 deletions
3
mkht.php
3
mkht.php
|
@ -31,7 +31,6 @@ define('DESTINATION', $args[2] ?? 'dns');
|
||||||
if (file_exists(SITE . '/config.ini'))
|
if (file_exists(SITE . '/config.ini'))
|
||||||
$config = parse_ini_file(SITE . '/config.ini');
|
$config = parse_ini_file(SITE . '/config.ini');
|
||||||
|
|
||||||
$config['title'] ??= '';
|
|
||||||
$config['header'] ??= false;
|
$config['header'] ??= false;
|
||||||
$config['author'] ??= NULL;
|
$config['author'] ??= NULL;
|
||||||
$config['base-url'] ??= [];
|
$config['base-url'] ??= [];
|
||||||
|
@ -68,7 +67,7 @@ ob_start();
|
||||||
?>
|
?>
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<feed xmlns="http://www.w3.org/2005/Atom">
|
<feed xmlns="http://www.w3.org/2005/Atom">
|
||||||
<title><?= $config['title'] ?></title>
|
<title><?= $config['title'] ?? '' ?></title>
|
||||||
<id>urn:publicid:<?= $config['id'] ?></id>
|
<id>urn:publicid:<?= $config['id'] ?></id>
|
||||||
<?php
|
<?php
|
||||||
foreach ($config['base-url'] as $url)
|
foreach ($config['base-url'] as $url)
|
||||||
|
|
Loading…
Reference in a new issue