]> git.mjollnir.org Git - s9y.git/commitdiff
unforce feedburner
authorgarvinhicking <garvinhicking>
Fri, 9 Jun 2006 20:29:58 +0000 (20:29 +0000)
committergarvinhicking <garvinhicking>
Fri, 9 Jun 2006 20:29:58 +0000 (20:29 +0000)
rss.php

diff --git a/rss.php b/rss.php
index 5152f6d561ef5d015b0b6ab39daa1c4aeb5fd980..78ce887cae5f19a2acb608caa81b94ba00833fde 100644 (file)
--- a/rss.php
+++ b/rss.php
@@ -149,10 +149,16 @@ if (is_array($plugins)) {
                 }
             }
 
-            if ($_GET['type']  == 'content' && !isset($_GET['category']) && !isset($serendipity['GET']['tag']) && $plugin->get_config('show_feedburner') === 'force' && !preg_match('@FeedBurn@i', $_SERVER['HTTP_USER_AGENT'])) {
-                       $url = 'http://feeds.feedburner.com/' . $plugin->get_config('fb_id');
-                       header('Location: ' . $url);
-                       exit;
+            if ($_GET['type']  == 'content' && 
+                !isset($_GET['category']) && 
+                !isset($serendipity['GET']['tag']) && 
+                $plugin->get_config('show_feedburner') === 'force' && 
+                !preg_match('@FeedBurn@i', $_SERVER['HTTP_USER_AGENT']) &&
+                !(serendipity_userLoggedIn() && isset($_GET['forceLocal']))
+               ) {
+                $url = 'http://feeds.feedburner.com/' . $plugin->get_config('fb_id');
+                header('Location: ' . $url);
+                exit;
             }
             $metadata['showMail']          = serendipity_db_bool($plugin->get_config('show_mail', $metadata['showMail']));
             break;