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
1 changed files with 1 additions and 2 deletions

View File

@ -31,7 +31,6 @@ define('DESTINATION', $args[2] ?? 'dns');
if (file_exists(SITE . '/config.ini'))
$config = parse_ini_file(SITE . '/config.ini');
$config['title'] ??= '';
$config['header'] ??= false;
$config['author'] ??= NULL;
$config['base-url'] ??= [];
@ -68,7 +67,7 @@ ob_start();
?>
<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<title><?= $config['title'] ?></title>
<title><?= $config['title'] ?? '' ?></title>
<id>urn:publicid:<?= $config['id'] ?></id>
<?php
foreach ($config['base-url'] as $url)