Skip to content

Commit

Permalink
Merge pull request #2 from dof-dss/info-library
Browse files Browse the repository at this point in the history
Adding edge case for new library URL
  • Loading branch information
soda736 authored May 16, 2023
2 parents a05f0bb + 47ba6c1 commit 3701b14
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Utils.php
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit 3701b14

Please sign in to comment.