From 3fa209105d9febd586a31c353813cd40582e6b4e Mon Sep 17 00:00:00 2001 From: vince Date: Fri, 24 Dec 2021 17:14:18 +0100 Subject: [PATCH] =?UTF-8?q?g=C3=A8re=20le=20titre=20de=20la=20page=20corre?= =?UTF-8?q?ctement?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/index.php b/index.php index 64a1533..dc689cc 100644 --- a/index.php +++ b/index.php @@ -1,5 +1,7 @@ [^\/]+)\/?(?[^\/]+)?\/?$/'); define('SUPPLIER_REGEX', '/^[A-Za-z]\w{0,31}$/'); define('EVENT_REGEX', '/^\d{4}\-[01]\d\-[0123]\d$/'); @@ -238,7 +240,7 @@ if (!$isConfig and $hasSupplier) { - <?php echo strip_tags($config[$supplier]['title']); ?> — <?php echo strip_tags($config[$supplier]['subtitle']); ?> + <?php if ($hasSupplier) : ?><?php echo strip_tags($config[$supplier]['title']); ?><?php if (!$isConfig) : ?> — <?php echo strip_tags($config[$supplier]['subtitle']); ?><?php endif; ?><?php else : ?><?php echo DEFAULT_TITLE; ?><?php endif; ?> @@ -249,7 +251,7 @@ if (!$isConfig and $hasSupplier) { - +