diff options
| author | Andreas Fischer <bantu@phpbb.com> | 2009-11-25 13:12:32 +0000 |
|---|---|---|
| committer | Andreas Fischer <bantu@phpbb.com> | 2009-11-25 13:12:32 +0000 |
| commit | 40bc220a415c20205c93f9a8786a3b6ccee952d6 (patch) | |
| tree | 88ba4bf9e41aad71f2cea6ae34be88c9beab2e00 | |
| parent | 00859fa47c770baee81210d4bcedfe91b889efac (diff) | |
| download | forums-40bc220a415c20205c93f9a8786a3b6ccee952d6.tar forums-40bc220a415c20205c93f9a8786a3b6ccee952d6.tar.gz forums-40bc220a415c20205c93f9a8786a3b6ccee952d6.tar.bz2 forums-40bc220a415c20205c93f9a8786a3b6ccee952d6.tar.xz forums-40bc220a415c20205c93f9a8786a3b6ccee952d6.zip | |
Adjust logic to what the comment says.
git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@10290 89ea8834-ac86-4346-8a33-228a782c2dd0
| -rw-r--r-- | phpBB/feed.php | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/phpBB/feed.php b/phpBB/feed.php index 425545a0dd..5edaf2281f 100644 --- a/phpBB/feed.php +++ b/phpBB/feed.php @@ -144,12 +144,7 @@ if ($config['gzip_compress']) } // IF debug extra is enabled and admin want to "explain" the page we need to set other headers... -if (!defined('DEBUG_EXTRA') || !request_var('explain', 0) || !$auth->acl_get('a_')) -{ - header("Content-Type: application/atom+xml; charset=UTF-8"); - header("Last-Modified: " . gmdate('D, d M Y H:i:s', $feed_updated_time) . ' GMT'); -} -else +if (defined('DEBUG_EXTRA') && request_var('explain', 0) && $auth->acl_get('a_')) { header('Content-type: text/html; charset=UTF-8'); header('Cache-Control: private, no-cache="set-cookie"'); @@ -168,6 +163,9 @@ else exit_handler(); } +header("Content-Type: application/atom+xml; charset=UTF-8"); +header("Last-Modified: " . gmdate('D, d M Y H:i:s', $feed_updated_time) . ' GMT'); + echo '<?xml version="1.0" encoding="UTF-8"?>' . "\n"; echo '<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="' . $global_vars['FEED_LANG'] . '">' . "\n"; echo '<link rel="self" type="application/atom+xml" href="' . $global_vars['SELF_LINK'] . '" />' . "\n\n"; |
