typo in sitemap
Former-commit-id: fa5509387cd2b50fb357ad3ec83c841ae21b6b45
--- a/getAgency.php
+++ b/getAgency.php
@@ -137,7 +137,7 @@
}
}
- $mode = "edit";
+ $mode = "view";
$rowArray = object_to_array($obj);
ksort($rowArray);
if ($mode == "edit") {
--- /dev/null
+++ b/index.php
@@ -1,1 +1,9 @@
+<?php
+/* Redirect to a different page in the current directory that was requested */
+$host = $_SERVER['HTTP_HOST'];
+$uri = rtrim(dirname($_SERVER['PHP_SELF']), '/\\');
+$extra = 'getAgency.php';
+header("Location: http://$host$uri/$extra");
+exit;
+?>
--- 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>';
?>