Index: mantisbt/core/html_api.php
===================================================================
--- mantisbt/core/html_api.php (revision 5360)
+++ mantisbt/core/html_api.php (working copy)
@@ -97,7 +97,7 @@
global $g_rss_feed_url;
if ( $g_rss_feed_url !== null ) {
- echo '' . "\n";
}
}
@@ -105,6 +105,14 @@
# Print the part of the page that comes before meta redirect tags should
# be inserted
function html_page_top1( $p_page_title = null ) {
+ $t_rss_enabled = config_get( 'rss_enabled' );
+ if ( OFF != $t_rss_enabled ) {
+ if ( auth_is_user_authenticated() ) {
+ $t_project_id = helper_get_current_project();
+ $t_rss_link = rss_get_news_feed_url( $t_project_id );
+ html_set_rss_link( $t_rss_link );
+ }
+ }
html_begin();
html_head_begin();
html_css();
@@ -113,7 +121,7 @@
html_rss_link();
$t_favicon_image = config_get( 'favicon_image' );
if ( !is_blank( $t_favicon_image ) ) {
- echo '';
+ echo '' . "\n";
}
html_title( $p_page_title );
html_head_javascript();
Index: mantisbt/main_page.php
===================================================================
--- mantisbt/main_page.php (revision 5360)
+++ mantisbt/main_page.php (working copy)
@@ -38,15 +38,6 @@
$f_offset = gpc_get_int( 'offset', 0 );
- $t_project_id = helper_get_current_project();
-
- $t_rss_enabled = config_get( 'rss_enabled' );
-
- if ( OFF != $t_rss_enabled ) {
- $t_rss_link = rss_get_news_feed_url( $t_project_id );
- html_set_rss_link( $t_rss_link );
- }
-
html_page_top1();
html_page_top2();