Fix HTML title when no site title

This commit is contained in:
Miraty 2023-06-08 21:58:14 +02:00
parent d6f8e7b84e
commit 2f00e1e46e

View file

@ -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)