page: api attribute indicate index requests
[minimedit.git] / sitemap.xml / index.php
index 82abc75ab7bd639f51a244f10813e221bac747cd..99b6fcfb0a93d2e98655bcbc9a8bc0e376d3ae4e 100644 (file)
@@ -1,5 +1,5 @@
 <?php
-if (!$User) return;
+if ($Page->api) return;
 header('Content-Type: application/atom+xml; charset=utf-8');
 print '<?xml version="1.0" encoding="utf-8"?>';
 $siteref = (empty($_SERVER['HTTPS']) ? 'http' : 'https') . '://' . $_SERVER['HTTP_HOST'];