From 47ba6c1dfa5ba2f4289004fae6ee8e1d81f54aeb Mon Sep 17 00:00:00 2001 From: Adam Williamson Date: Tue, 16 May 2023 09:17:04 +0100 Subject: [PATCH] Adding edge case for new library URL --- src/Utils.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Utils.php b/src/Utils.php index 8db25e8..edeaf6d 100644 --- a/src/Utils.php +++ b/src/Utils.php @@ -30,8 +30,8 @@ public static function createApplicationId($name) { * Machine safe site ID. */ public static function createSiteId($url) { - if ($url === 'https://info.library.nics.gov.uk') { - $url = 'https://infolibrarynics.gov.uk'; + if ($url === 'info.library.nics.gov.uk') { + $url = 'infolibrarynics.gov.uk'; } else { $url = strtolower(str_replace('-', '', $url));