git.shiar.nl
/
minimedit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
page: only html body on application/xml requests
[minimedit.git]
/
page.php
diff --git
a/page.php
b/page.php
index 95fd01fdb716d99c98c3e71485df69926a3dbaf6..dae508103159e3518fab45a6334ba14255a95710 100644
(file)
--- 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();