From cd4be0a3e3a4e1061277d436a3be77537efec7f0 Mon Sep 17 00:00:00 2001 From: Alex Cabal Date: Mon, 2 Jun 2025 13:49:08 -0500 Subject: [PATCH] Update nga.gov URL structure in artwork submission page --- lib/Museum.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Museum.php b/lib/Museum.php index d9deb9a7..1616392a 100644 --- a/lib/Museum.php +++ b/lib/Museum.php @@ -331,13 +331,13 @@ class Museum{ return $outputUrl; } elseif(preg_match('/\bnga\.gov$/ius', $parsedUrl['host'])){ - $exampleUrl = 'https://www.nga.gov/collection/art-object-page.46522.html'; + $exampleUrl = 'https://www.nga.gov/artworks/102195-fallen-tree'; if($parsedUrl['host'] != 'www.nga.gov'){ throw new Exceptions\InvalidMuseumUrlException($url, $exampleUrl); } - if(!preg_match('|^/collection/art-object-page\.[^/]+\.html$|ius', $parsedUrl['path'])){ + if(!preg_match('|^/artworks/[^/]+$|ius', $parsedUrl['path'])){ throw new Exceptions\InvalidMuseumUrlException($url, $exampleUrl); }