does not 404 on rss (fixes rev59) - yay rev60! :D
This commit is contained in:
parent
509efe2188
commit
ea7f5b9d83
@ -132,6 +132,7 @@
|
||||
global $fpdb, $smarty, $fp_config;
|
||||
$params = array();
|
||||
$module = 'index.tpl' ;
|
||||
$can404 = true;
|
||||
|
||||
|
||||
if (!empty($_GET['entry'])) {
|
||||
@ -154,6 +155,8 @@
|
||||
|
||||
if (!empty($_GET['feed'])){
|
||||
|
||||
$can404=false;
|
||||
|
||||
switch($_GET['feed']) {
|
||||
case 'atom':
|
||||
header('Content-type: application/atom+xml');
|
||||
@ -181,7 +184,7 @@
|
||||
|
||||
/* no entry found : 404 */
|
||||
|
||||
if (!$e)
|
||||
if (!$e && $can404)
|
||||
$module = index_404error();
|
||||
|
||||
return $module;
|
||||
|
Loading…
x
Reference in New Issue
Block a user