X-Git-Url: http://git.shiar.net/minimedit.git/blobdiff_plain/2effc7e15fb4b6203d5479a215dfb246d8f52826..c9b54617b5fc2583c548913a65e1f521fa7852f0:/page.php diff --git a/page.php b/page.php index f9dabf0..c313467 100644 --- a/page.php +++ b/page.php @@ -26,7 +26,7 @@ elseif (file_exists("$request/index.html")) { require_once('article.inc.php'); $Page = new ArchiveArticle($staticpage); -if ($_SERVER['HTTP_ACCEPT'] === 'text/plain') { +if (@$_SERVER['HTTP_ACCEPT'] === 'text/plain') { $Page->api = TRUE; } @@ -83,7 +83,7 @@ else { } } -if ($_SERVER['HTTP_ACCEPT'] === 'application/xml') { +if (@$_SERVER['HTTP_ACCEPT'] === 'application/xml') { header('Access-Control-Allow-Origin: *'); } elseif (!$Page->api) {