Add sitemap.xml.php
[disclosr.git] / sitemap.xml.php
blob:a/sitemap.xml.php -> blob:b/sitemap.xml.php
--- a/sitemap.xml.php
+++ b/sitemap.xml.php
@@ -10,7 +10,6 @@
     if (strpos($file, ".php") !== false && $file != "index.php" && $file != "sitemap.xml.php")
         echo " <url><loc>" . local_url() . "$file</loc><priority>0.3</priority></url>\n";
 }
-echo '</urlset>';
 
 $db = $server->get_db('disclosr-agencies');
 try {
@@ -21,5 +20,6 @@
 } catch (SetteeRestClientException $e) {
     setteErrorHandler($e);
 }
+echo '</urlset>';
 ?>