X-Git-Url: http://git.shiar.net/minimedit.git/blobdiff_plain/c7feba44bdf1102b80a09f683321559d18755a24..0ddf79607092e0aaaa69e46e3f2d4160117da495:/page.php diff --git a/page.php b/page.php index 95fd01f..dae5081 100644 --- a/page.php +++ b/page.php @@ -83,5 +83,8 @@ else { } } -include_once 'page.inc.php'; +if (!$Page->api and $_SERVER['HTTP_ACCEPT'] !== 'application/xml') { + include_once 'page.inc.php'; +} +print $Page->render();